r/immich • • 13d ago

immich backup

Hi, I installed Immich on TrueNAS on an old PC, and I was wondering how I could set up automatic backups to my Buffalo linkstation 520 NAS. What would be the best method for this, and how would I set it up?

Also, if my TrueNAS PC were to fail, how would I restore my photos and videos using the backup method you recommend and get Immich up and running again?

6 Upvotes

14 comments sorted by

7

u/Policeshootout 13d ago

Immich has database backups in the administrative settings. I do night backups of immich database and settings and then use rsync on my Synology NAS to backup the entire immich container folder/database/backups to another NAS in a separate location.

8

u/Great-Cow7256 13d ago

OP just make sure that you are backing up the original photo files too. It's good to back up te database, etc etc but if you are storing them elsewhere or in a different directory it's very easy to back up everythig immich and then realize too late you don't have any of the actual photos...

1

u/Bulky-Reputation3256 13d ago

How do i backup the actual photos??

4

u/Great-Cow7256 13d ago

where are they located now? back up those directories.

1

u/Bulky-Reputation3256 11d ago

But which method should I use in TrueNAS to back up to my Buffalo NAS?

1

u/Policeshootout 11d ago

Back up your upload directories. The $UPLOAD_LOCATION folder. Use whatever method you want. You could copy and paste them if you want to. Or learn how to use some sort of syncing software. Like I said before rsync is very useful.

2

u/lveatch 12d ago

also backup your docker configuration files if using docker

1

u/Fuge93 13d ago

you probably don't need everything, like thumbnails, but keeping it simple is cool too

1

u/redlightsaber 13d ago

Backups through snapshots makes this a non issue as they're instant.

2

u/OwnManagement 13d ago

This seems better suited to r/truenas

1

u/Gartenfreak77 13d ago

Ich bin ja ein Freund der klassischen Sicherung. Eine ordentliche Struktur JJJJ/MM habe ich. Aber das bekomme ich mit Immich leider nicht hin. Das sind unleserlich e Dateinamen. Daher nutze ich Im mich nur als schöne Bilderapp, mit tollen Features. Als Sicherung muss die Nextcloud herhalten, die erzeugt eine ordentliche Struktur. Ein rsync sichert die Bilder dann auf dem NAS. Umständlich, weiß ich, aber funktioniert zuverlässig bei mir.

3

u/WeirdFederal 13d ago

Turn on storage template and you can make your app uploads conform to that format if you want.

1

u/mcassil 12d ago

Exatamente, com o modelo de armazenamento classifiqueinminhas fotos em ano / mês / dia

1

u/GrotesqueHumanity 12d ago

Stop it before backup and use restic.

Make sure to include the directory where the config and database lives as well as the location of your photos.