Your YAMS configuration is located in your YAMS install directory.
For the purposes of this tutorial, I’ll assume your YAMS install directory is /opt/yams
, and that you want to create a backup on your ~
directory.
First, go to the YAMS install directory and do a ls
. You should see the config
folder right there:
$ cd /opt/yams/
/opt/yams$ ls
# Output
config docker-compose.yaml
To create a backup, just run:
/opt/yams/config$ tar -czvf ~/yams-backup.tar.gz config/*
tar
is going to compress and create a .tar.gz
file called yams-backup.tar.gz
on the ~
directory.
Remember you should store your backups in a secure location!
For the purposes of this tutorial, I’ll assume your YAMS install directory is /opt/yams
, and that the backup is located in ~/yams-backup.tar.gz
.
To restore a backup, first stop YAMS:
$ yams stop
Then, go to your YAMS install directory and delete everything inside the config
folder.
$ cd /opt/yams
/opt/yams$ rm -r config/*
Now, untar the backup file on your YAMS install directory.
/opt/yams$ tar -xzvf ~/yams-backup.tar.gz
If you see all the folders inside the config
directory, it means it worked!
/opt/yams$ ls config
# Output
bazarr emby gluetun prowlarr qbittorrent radarr sonarr
Finally, restart YAMS
/opt/yams$ yams start
Everything should be running as expected, with your backup up and running!