Simple systemd service to backup scalets (VM) in https://vscale.io
- Create API token on https://vscale.io/panel/settings/tokens/
- Put token to
/etc/vscale.token
:
VSCALE_TOKEN=XXXXXXXXXXX
- Set secure permissions on our token file:
chmod 600 /etc/vscale.token
- Put
scalets-backup.service
andscalets-backup.timer
files to/etc/systemd/system
directory. - Run
systemctl daemon-reload
- Run
systemctl enable scalets-backup.timer
Use tag to_backup
to mark required scalets (VM) in https://vscale.io/panel/.
Run following command to perform backup or wait scheduled job
systemctl start scalets-backup.service
Edit /etc/systemd/system/scalets-backup.timer
to change schedule. Read
https://www.freedesktop.org/software/systemd/man/systemd.time.html to get help with OnCalendar
syntax.
Use common approach to see service log:
journalctl -xeu scalets-backup.service