I
Immich5d ago
DNU

Backing Up to an External Drive

Hi I have used immich for a while now but not done a backup of immich and all my contents. I can see that Borg is advised for this but is there other programs or Docker containers that can be used to do this and is there specific paths that need to be backed up to make sure I have access to them? Also does it backup all the images and videos I have in immich or just the metadata? I have my server on my Network but want to use a Docker container like Restic to backup my immich so that I have another backup of all my photos and videos. The external drive tho will me connected to my Mac Studio and Ill look to update everyday
21 Replies
Immich
Immich5d ago
:wave: Hey @DNU, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed. Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Finn
Finn5d ago
I have never backed up TO a mac, so I can only give a couple of hints here. Your server needs to access the drive on the mac somehow. One way would be to use SSH (Called "Remote Login" on mac). Once login is working you have to point your backup software to the drive/directory that serves as the backup repository. As long as you backup all the paths mentioned in the documentation you will have all the data Immich required to be restored, i.e. original files and the database dump. Thumbnails and transcodes are not included in the minimum backup and need to be regenerated. You can also choose to back them up, but this will increase your backup size.
DNU
DNUOP5d ago
So it looks like the drive is there in locations but not 100% sure of that Regarding the paths that lets say Restic wud need is that the paths for these
UPLOAD_LOCATION/library
UPLOAD_LOCATION/upload
UPLOAD_LOCATION/profile
UPLOAD_LOCATION/library
UPLOAD_LOCATION/upload
UPLOAD_LOCATION/profile
No description
Finn
Finn5d ago
For the paths add the database backup dir as well.
No description
Finn
Finn5d ago
Mount looks fine to me, as long as it appears in that locations bar it's mounted on your filesystem
DNU
DNUOP5d ago
I asked ChatGPT but dont want to screw this up as its all my photos and videos lol
Finn
Finn5d ago
Ah yes lol do not rely on chatgpt for that
DNU
DNUOP5d ago
Yeah I know lol gives an understanding but will never trust the code it pumps out
Finn
Finn5d ago
It can help to get things started but you 100% need to confirm the things it says are correct
DNU
DNUOP5d ago
So the process wud go something like this Install Restic & Create Backup folder on ExHDD Tell Restic where to grab Backup Files/Folders - with correct paths Run Backup Immich Dump
Finn
Finn5d ago
Sounds about right
DNU
DNUOP5d ago
Thanks for the help Ill give it a try
biglilsteve
biglilsteve5d ago
Gemini architected my entire stack by installing and configuring the Ubuntu Pro LTS operating system, deploying Dockerized services for Immich and Pi-hole, implementing a multi-layered security framework with a firewall, VPN, and reverse proxy, and integrating automated backups, power management, and system health monitoring to ensure data integrity and high availability.
DNU
DNUOP5d ago
Would it be a better idea to maybe install Kopia docker to my server and then use Kopia to backup my whole OMV docker data which would include Immich to the external HDD Who is Gemini?
biglilsteve
biglilsteve5d ago
Google’s LLM - similar to ChatGPT.
DNU
DNUOP5d ago
I don’t want to follow something like that as I’m dealing with photos and videos I like the look of Kopia but trying to workout the process of having everything to do with Immich put on an external drive connected to a different device/computer I’m having problems with understanding
Finn
Finn5d ago
In the end the tool makes no difference. Kopia is just another backup tool. They all do the same in the end, so use what feels the best for you. Backup as much as you think is worth backing up! It's not wrong to have more data in the backup, it just becomes bigger / more expensive (in case of cloud backups). Having a non local but still self managed backup target definitely adds some complexity here
Finn
Finn5d ago
If you follow my initial suggestion of sharing that drive via SSH you should setup the Kopia side using the SFTP guide https://kopia.io/docs/repositories/#sftp
Repositories
Fast and Secure Open-Source Backup Software for Windows, Mac, and Linux
DNU
DNUOP5d ago
Thanks for that once finished with the school run I’ll give it a try. Just to confirm I can install the Kopia docker on the server but then point Kopia to the external HDD via SFTP
Finn
Finn5d ago
Most backup tools, including Borg, Restic and Kopia, support SFTP, yes. Also to clarify: The tools do not care wether that drive is internal or external. To them it's just a random path on the filesystem (wherever that drive is mounted by MacOS)
DNU
DNUOP5d ago
Cool mate thanks. Think I’m over thinking it as don’t want to screw up my photos etc

Did you find this page helpful?