Backup and Restore
Link-Live Private must be running to create or restore a backup.
-
To create a backup, run the following command:
sudo ./backup.sh -y -o /home/myuser/ll-backups
-
The backup is saved in the specified directory.
-
The
-y
/--yes
option will make the script non-interactive (if you're planning on automating backups).
Restoring Data
CAUTION! Restoring a backup will overwrite all persistent data for a project.
To restore a backup, run the following:
sudo ./restore.sh -i /home/myuser/ll-backups/backup_<date>
Replace <date>
with the actual backup date.
Tip: Regularly test backups to ensure they work.
Data Persistence
Docker-compose runs with a project name of "linklive". Your persistent data is tied to this linklive project, and data is stored within the system docker data directory.
Refer to docker-compose online user documentation if needed: https://docs.docker.com/compose/.
For Advanced Users
If you're proficient with Docker, we recommend creating your own backup strategy that can be tailored to your specific environment and processes.
-
Persistent data is stored in these Docker volumes:
ll-mongo
,redis
,bedrock-redis
, andminio
. -
Check the
docker-compose.yml
file for volume usage and definitions. -
Reference: https://docs.docker.com/storage/volumes/#backup-restore-or-migrate-data-volumes