#Moving UPLOAD_LOCATION to another Disk

1 messages · Page 1 of 1 (latest)

steel basin
#

hi guys, i just want to ask a question: is it possible to migrate the entire data (upload, library, thumbs, encoded-videos, so the entire UPLOAD_LOCATION) to another disk and starting Uploading photos in the new directory since that?
Or I just need to follow the https://immich.app/docs/administration/backup-and-restore/, like im setting up a new Ubuntu machine without losing data?
I was wondering if I can eventually lose data by doing that.

scarlet oysterBOT
#

:wave: Hey @steel basin,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :blue_square: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :blue_square: I have read applicable release notes.
  3. :blue_square: I have reviewed the FAQs for known issues.
  4. :blue_square: I have reviewed Github for known issues.
  5. :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting.
  7. :blue_square: I have 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)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

onyx bay
#

Yeah just copy everything and change the path

#

If you feel worried about losing data, that means your backups aren't good enough ;)

steel basin
#

Ok, so i need to do a backup of what?

onyx bay
#

For moving to a different disk you're fine to just copy things

#

But in general you should always have good backups set up

steel basin
#

and how can I do a backup of all of that in order to not feel worried to lose anything?

onyx bay
#

The link above has immich specific backup instructions

onyx bay
#

The rest is just using standard backup tools to put the data somewhere offsite, plenty of guides about that online

#

yeah

steel basin
#

sorry, im new, so just for being precise:

  • i need to backup my data using commands as the link above shows;
  • what I have to do with that backup?
  • i just copy all the files (but firstly, what are all the files i need to copy?) in UPLOAD_LOCATION and put them into another disk;
  • edit the .env file in order to modify the UPLOAD_LOCATION;
  • and it's alright?
onyx bay
#
  1. yes
  2. Keep them safe in case something goes wrong. You should read up a bit on backups, why to make them, how to handle them, etc
  3. yes, just the whole folder
    4/5. yup
steel basin
#

and i don't need to touch anything of my db in ./postgres??
because the last time i did something similar i accidentaly lost all my files in the docker volumes, such as the db postgres

lavish obsidian
#

If you're not moving the database, then no

onyx bay
#

because the last time i did something similar i accidentaly lost all my files in the docker volumes, such as the db postgres
This is why you should have backups

lavish obsidian
#

If you move the files: be sure to shut down the containers first
If you copy, don't worry about it until you edit the env