1.6 KiB
1.6 KiB
title, date, draft, weight, summary
title | date | draft | weight | summary |
---|---|---|---|---|
Backups | 2023-01-17T19:38:39-03:00 | false | 4 | Backup your YAMS configuration. |
Your YAMS configuration is located in your YAMS install directory.
Create a Backup
To create a backup, run:
yams backup [destination]
Where the destination is the location where you want the .tar.gz
file to be saved. For example:
yams backup ~/backups/
The output will be:
Stopping YAMS services...
Backing up YAMS to /home/roger...
This may take a while depending on the size of your installation.
Please wait... ⌛
Backup completed! 🎉
Starting YAMS services...
Backup completed successfully! 🎉
Backup file: /home/roger/yams-backup-2024-12-23-1734966570.tar.gz
Restore a Backup
Restoring a backup is simple:
- Extract your backup in the new location and
cd
into it:
tar -xzvf your-backup.tar.gz /your/new/location
cd /your/new/location
- Edit the YAMS binary with the new information. You don't have to use
vim
; you can use your favorite text editor:
vim yams
- Update
your/install/location
with your new install location:
#!/bin/bash
set -euo pipefail
# Constants
readonly DC="docker compose -f your/install/location/docker-compose.yaml -f your/install/location/docker-compose.custom.yaml" # -> Change this!
readonly INSTALL_DIRECTORY="your/install/location" # -> Change this!
- Move the
yams
script to/usr/local/bin/
:
sudo cp yams /usr/local/bin/
- Start YAMS:
yams start
And that's it! YAMS should now be up and running.