Comment on Immich: opinion revised

<- View Parent
bdonvr@thelemmy.club ⁨6⁩ ⁨days⁩ ago

If anyone’s interested, here’s my Immich backup script. You setup rclone to use an S3 storage service like BackBlaze which is quite cheap. I also use a crypt which means RClone will encrypt and decrypt all files to/from the server. S3 configuration and crypt setup.

Then set this up as a cron job. With the “BACKUP_DIR” option when you delete a photo it will get moved to the “deleted” folder. You can go into your S3 provider’s lifecycle settings and have these get deleted after a number of days. I do 10 days. Or you can skip that and they’ll be gone forever.

#!/bin/bash
SRC_PATH="/path/to/immich/library"
DEST_REMOTE="b2crypt:immich-photos/backup"
BACKUP_DIR="b2crypt:immich-photos/deleted"
RCLONE_OPTIONS="--copy-links --update --delete-during --backup-dir=$BACKUP_DIR --suffix `TZ='America/New_York' date +%Y-%m-%d`.bak --verbose"
rclone sync $SRC_PATH $DEST_REMOTE $RCLONE_OPTIONS

source
Sort:hotnewtop