Server Backup/Restore #1101
Replies: 6 comments 19 replies
-
This should happen in the user space, similar to how you would back up other applications. |
Beta Was this translation helpful? Give feedback.
-
I also have questions about how to perform backup and restore after reinstalling rpi4 for example. If it is done by duplicati which folder to backup? I think that this is very important because I have my photo on external HDD if I move external HDD with folder structure that was created by Immich to another install of Immich. I just want to restore the database with folder structure and list of users but how to do that? |
Beta Was this translation helpful? Give feedback.
-
@tomislav177 @JeremyClement
daily-bkup.sh
weekly-bkup.sh:
This gets me a daily backup, and a weekly in case the daily fails at some point. I think it's enough redundancy for me. |
Beta Was this translation helpful? Give feedback.
-
Looks like there are some great official instructions on this topic now! I'm trying it out now. https://documentation.immich.app/docs/administration/backup-and-restore Thanks @jrasm91! |
Beta Was this translation helpful? Give feedback.
-
How robust is immich when restoring? The documentation only discusses backing up the postgres db, but what about all of the generated files? Off the top of my head:
|
Beta Was this translation helpful? Give feedback.
-
What I did for backup and restore is like:
Or use this command to apply the change: sed -i "s#- pgdata#- /opt/immich-app/pgdata#g" ./docker-compose.yml /opt/immich-app/pgdata is where your database files are located, and the whole directory can be copied and backed up to anywhere and can be used again as a restore action when you delete all the containers and volumes and restart a new immich server
BTW, just a suggestion that it could be an option in the .env file that user can config the pgdata volume as database file location or use a custom location for it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice to be able to backup the server with the database and being able to restore it incase of a disk crash or server migration.
Beta Was this translation helpful? Give feedback.
All reactions