This is a bash script that will help you backup your Umbrel apps data to a remote server. It will change data location of apps that you will specify in the variables
file and then it will create a backup of that data using restic.
This is useful if you want to keep some of your apps on default installation location and some of them on external drive. You can also use this script to backup your data to a remote server.
I like to keep my bitcoin/lnd related data and apps on the default location (because I have it on NVMe disk) and other apps which doesn't require that much performance I keep on slower external drive.
Umbrel backuper is just a glue tool to setup umbrel, data storage, restic and crontab to work together.
- SSH into your Umbrel node
- Clone this repository
- Update the
variables
file to match your setup - Update the
password
file with your restic repository password (if repository is not setup yet just define something and it will be used to create the repository) - Run
sudo ./install.sh
- Make sure there were some changes to the app like uploading some files or installing some apps to Nextcloud so you can verify that the data is restored at the end
- Make sure you ran backup procedure after changes (you can run it manually with
sudo ./restic-backuper.sh
) - Delete the app in umbrel GUI (in this case Nextcloud)
- Remove the app data from backup dir
sudo rm -rf $BACKUP_DIR
(replace$BACKUP_DIR
with your backup dir defined in variables file) - Now everything should be deleted related to the app
- Install the app again from umbrel store
- Run
sudo ./change-data-folder.sh --restore
- Verify that the data is restored
Because some apps in the docker volume write data as root and we need to be able to read it so we can do proper backup.