I need to reinstall Linux, how do i backup all my existing docker containers with the current settings?

Title says it all, also i want to ask. Will i break my CasaOS backup if i install a newer version of Ubuntu LTS? Thank you in advance.

Backup Instructions

  1. Backup CasaOS Application Files:
  • Copy the contents of /var/lib/casaos:
cp -r /var/lib/casaos ~/backup/casaos
  1. Backup Application Data:
  • Copy the contents of /DATA/AppData:
cp -r /DATA/AppData ~/backup/AppData

Restore Instructions

  1. Restore Application Data:
  • Copy the backed-up AppData back to its original location:
sudo cp -r ~/backup/AppData/* /DATA/AppData/
  1. Restore CasaOS Application Files:
  • Copy the backed-up CasaOS application files back to their original location:
sudo cp -r ~/backup/casaos/* /var/lib/casaos/
  1. Reinstall Applications:
  • For each application, go to the /var/lib/casaos/apps directory and install each app with the following command:
casaos-cli app-management install --file="/var/lib/casaos/apps/[The rest of the path here]"

I would run through a dry test of these instructions before the main event just to make sure everything works and gets restored.

Would this work including for Immich. This includes a Postgres database. Does Immich automatically detect its a restore and connect with restored database?

1 Like