Comment on Immich: opinion revised
bdonvr@thelemmy.club 6 days agoIf 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
Ulrich@feddit.org 6 days ago
Yeah, I don’t know what any of these words mean. I just want to click “export” and back all the data up to a flash drive. Is that too much to ask?
Shimitar@downonthestreet.eu 6 days ago
I think it is. It doesn’t take much to understand which folders needs to be backed up. They are also pretty clear on the immich website on how to backup the database itself. No, just an “export” wouldn’t be good enough since the files themselves do not include the metadata.
Ulrich@feddit.org 5 days ago
Why is that?
Yeah I’m pretty tired of hearing things are “pretty clear” or “not that complicated” and then being directed to an absolute word salad of technical terms no one without a computer science degree would understand.
They could…add them?
catloaf@lemm.ee 6 days ago
One rclone command isn’t much more complicated than one button.
Ulrich@feddit.org 6 days ago
Reading the comment I replied to, it appears to be much much more complicated. And I don’t understand how anyone can claim otherwise.
Shimitar@downonthestreet.eu 6 days ago
You need to backup exactly two folders, which i have also pointed out in another commend and in the wiki.
However you back those folder up, it’s up to you.
catloaf@lemm.ee 6 days ago
Key word is “appears”. Choose your source and destination, run rclone. That’s it. No harder than going to the page, clicking export, picking a folder, save. It’s really not hard at all, give it a try.
bdonvr@thelemmy.club 6 days ago
Well yeah you could go on the site and select whatever photos and hit download I suppose.
Ulrich@feddit.org 6 days ago
There’s no way to do that for your entire library. Also I assume that would not retain the Immich-specific metadata like the ML object tags and the “people” tagged in the photos.
bdonvr@thelemmy.club 6 days ago
You should have a backup solution for your server that should cover this, without that you should probably stick with managed photo backup services.