Backup
A backup lets you return Alta to a working state or move it to another server.
When to Use
Section titled “When to Use”Make a backup before every update, before you uninstall Alta and before you move to another server.
What Is Included
Section titled “What Is Included”/usr/local/bin/alta: the Alta binary./etc/alta: one configuration file for each service (for examplealta2.conffor a service namedalta2) andlicense.txt.
The recorded archive is not included. It stays in the Location directory of each Storage as MPEG-TS segments and can be very large. Copy it separately if you need it.
Create
Section titled “Create”Save binary file and configuration files to archive. The /etc/alta directory also contains license.txt:
tar -Pzcf ~/alta-backup.tar.gz /usr/local/bin/alta /etc/altaIf your configuration is not in /etc/alta, replace this path in the command.
Restore
Section titled “Restore”Stop the service, extract the backup, and start the service again:
systemctl stop altarm -f /usr/local/bin/altatar -Pxf ~/alta-backup.tar.gzsystemctl start altaIf you run additional services, stop each of them before you extract the backup and start each of them after.