SWISS CHEEKS
IImmich
•Created by SWISS CHEEKS on 12/12/2024 in #help-desk-support
Restoring my backup - currently just playing around with container on docker(windows)
I set up docker environment with the folder called immich-app , then i pulled the compose files and env files from github for immich.
Uploaded a folder and notice it is in the upload folder.
Currently I am trying to create a backup ( just wish you can force an update as soon as you want)
But I want to know how would I first backup everything then restore it.
From the docs it says to back up
UPLOAD_LOCATION/library
UPLOAD_LOCATION/upload
UPLOAD_LOCATION/profile
no idea what profile is for because I have nothing inside of it but ok.
Next is says to run a
[System.IO.File]::WriteAllLines("C:\absolute\path\to\backup\dump.sql", (docker exec -t immich_postgres pg_dumpall --clean --if-exists --username=postgres))
Do I actually have to do this? how about if the last thing I did before my hdd got blown up was just copy and paste the dump.sql file ? so I would not even be able to run this command right?
Like what does this line even do?
ok now to the restore part
Restore
(((( THE COMMANDS FROM THE WEBSITE))))
https://immich.app/docs/administration/backup-and-restore/
All this is directly from the docks
In the part where it says
Remove-Item -Recurse -Force DB_DATA_LOCATION # CAUTION! Deletes all Immich data to start from scratch
Do I have to adjust something in this line? or is this going to do it automatically?
My question is while running the restore item do I have to be already in the path that my compose and env file is in?
then run all these commands right?
But how is it going to know exactly where
UPLOAD_LOCATION/library
UPLOAD_LOCATION/upload
UPLOAD_LOCATION/profile
is
Because it seems like one of these commands states it will Delete all immich data to start from scratch so I posted these 3 folders in the immich-app folder wouldn't it delete the photos inside them?
5 replies