unraid backup scripts #8416
Replies: 4 comments 4 replies
-
hi @dkerlee , Thanks for posting this. I am also looking at a better/easier way to backup my Immich instance inside Unraid. I am not great with the commands in the docs... I had a couple of questions about your script; what is BACKUP_DIR & BACKUP_DIR2 ? I assume the first is where the backup is going.. what is the second for? Also, what is the reference to nextcloud within the script for? |
Beta Was this translation helpful? Give feedback.
-
the cp $BACKUP_DIR/xxxxxxxxxxxxxxxx command line copies the one back up to a second location. So I have that postgresbackup in two places: DIR, and DIR2. The external USB and the internal disk pool. The last line: "# Rotate backups.........." Dude! I asked chatgpt to write this stuff for me, and just changed it a bit. Pretty darn cool.
I realize that muddies the waters a bit as this is immich github. But it's what I got, and might be helpful (or confusing! Which is why you asked!). |
Beta Was this translation helpful? Give feedback.
-
I am using dbbackup to backup the db in the immich upload folder. |
Beta Was this translation helpful? Give feedback.
-
Can we use also zfs replication? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I added these scrips that seem to work fine in Community Applications > User Scripts.
postgresql-backup-script.txt
and the actual pics:
#!/bin/bash
rsync -av --progress /mnt/user/memories/immich/library /mnt/disks/TOSHIBA_EXTERNAL_USB/immich
rsync -av --progress /mnt/user/memories/immich/upload /mnt/disks/TOSHIBA_EXTERNAL_USB/immich
rsync -av --progress /mnt/user/memories/immich/profile /mnt/disks/TOSHIBA_EXTERNAL_USB/immich
Then I just look at that external hard drive from time to time to make sure everything is there.
Beta Was this translation helpful? Give feedback.
All reactions