I would like to share my latest 'project': automatic backup of Toon data.
With the setup below Toon will make a copy of the /HCBv2 and the /mnt folders (containing the rra databases for instance) on a remote server.
In my case I use a Synology NAS to store the backup. Data is transferred via the rsync tool via scheduled incremental backups.
This will work with any other remote server running a rsync service.
Because the rsync protocol by defaults asks for a password (which you don't want in a batch job obviously) I am using ssh keys to login on the remote server.
Installation instructions (some experience with shells, editors is required):
1. Create an SSH keypair on the Synology NAS:
I followed this guide to do this: https://forum.synology.com/enu/viewtopic.php?t=126166
2. Create an SSH keypair on Toon:
login to your Toon as root
create a keypair by issuing these commands:
Code: Select all
mkdir .ssh
dropbearkey -t rsa -f ~/.ssh/id_dropbear
append this public key string to the authorized_keys file on the Synology NAS which you created in step 1
3. Install rsync on Toon
install the attached packages on Toon:
Code: Select all
opkg install popt_1.14-r3.0_qb2.ipk
opkg install rsync_3.0.6-r0_qb2.ipk
5. make the file rsyncjob.sh executable if not already.
6. test by running manually:
Code: Select all
./rsyncjob.sh
Only new/changed files will be copied across (rra databases mainly and changed config files)
Hope you like it. All feedback is welcome of course.
Kind regardz,
Toonz