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
- Backup CasaOS Application Files:
- Copy the contents of
/var/lib/casaos
:
cp -r /var/lib/casaos ~/backup/casaos
- Backup Application Data:
- Copy the contents of
/DATA/AppData
:
cp -r /DATA/AppData ~/backup/AppData
Restore Instructions
- Restore Application Data:
- Copy the backed-up
AppData
back to its original location:
sudo cp -r ~/backup/AppData/* /DATA/AppData/
- Restore CasaOS Application Files:
- Copy the backed-up CasaOS application files back to their original location:
sudo cp -r ~/backup/casaos/* /var/lib/casaos/
- 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?
I’m trying to apply this steps on my setup. I’ve tried with Jellyfin and run into permission problems. Maybe the files should’ve been copied with cp -pR
to preserve permissions and ownership.
In my case, Jellyfin only works with PUID
and GUID
set to 0
(root permissions).
It’s hard to tell which permissions and ownership each file had before…
Edit.: Fixed! (apparently)
I added a new app directly from CasaOS store and checked out the permissions of the files that were created on /DATA/AppData/<NEW-APP>
and /var/lib/casaos/apps/<NEW-APP>
.
Basically, each <NEW-APP>
folder is owned by root:root
as well as the files in /var/lib/casaos/apps/<NEW-APP>/
. In my case, the files inside /DATA/AppData/<NEW-APP>/
are owned by my_user:devmon
. I changed ownership of Jellyfin’s AppData’s folders and files to my_user:devmon
and it’s working, although I know that some files where owned by different users like abc
before.