Administrator of thelemmy.club

Nerd, truck driver, and kinda creeped that you’re reading this.

  • 0 Posts
  • 15 Comments
Joined 2 years ago
cake
Cake day: June 14th, 2023

help-circle




  • I’m not looking to become a sysadmin

    And that’s fine and understandable. But I don’t think that Immich is for you. It’s not consumer-grade software. It’s a piece of Linux server software that requires occasional maintenance and administration. We haven’t seen a breaking update in a while but Immich does occasionally release updates where things will break if you don’t dig in to the config files and reconfigure it.


  • bdonvr@thelemmy.clubtoSelfhosted@lemmy.worldImmich: opinion revised
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    1 day ago

    If you’re self hosting then you could just copy all the files from your server onto an external drive. I have to say that’s not a great backup solution though, and you should learn more about administration of Linux servers so that when things break you can fix them. I wouldn’t rely on it as a safe solution to your photos otherwise.





  • 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