External Backup Script using Rclone Mount
This script will back up your application config files, databases, and torrent sessions (not the torrent data). For it to work, an Rclone remote must already be configured on your service.
Prerequisites
- Familiarity with the Linux command line.
- Command execution via SSH.
- An Rclone remote already configured on your Ultra.cc service (see Rclone Mount using systemd).
Installation
- Connect to your service via SSH.
- Execute the following command:
bash <(wget -qO- https://scripts.ultra.cc/util-v2/Ultra-Backup/main.sh)- Type
1andENTERto proceed with the installation. - Type your Rclone remote name, e.g.
gdriveand pressENTERto confirm. - Done!
Configuration
- At 00:00 on every Sunday the script will now upload the backup to your remote cloud storage.
- To change the backup interval, execute
crontab -eand find the line with theUltra-Backupscript. Use crontab.guru to change the interval at the beginning of the line.
Log
- The script log is
~/scripts/Ultra-Backup/backup_log.txt, and the output of the scheduled run is~/scripts/Ultra-Backup/ultra_backup.log.
Uninstallation
- Connect to your service via SSH.
- Execute the following command:
bash <(wget -qO- https://scripts.ultra.cc/util-v2/Ultra-Backup/main.sh)- Type
2andENTERto proceed with the uninstallation. - Done!
If you require further assistance, you can open a support ticket here.