strategiesllka.blogg.se

Rclone backblaze
Rclone backblaze











rclone backblaze

‘#’ Rclone scheduled sync for duplicity backups Inside of /etc/cron.d/ create a file (rclone) with the following:.Make sure rclone-cloud.sh is executeable: usr/bin/rclone sync /home/user-data/backup/encrypted remote:rclonebackup If pidof -o %PPID -x “rclone-cloud.sh” thenĮxport RCLONE_CONFIG=/home/username/.config/rclone/nf I placed it inside /home/username/mailinabox/management/ with the others created by the MIAB install. Create a script rclone-cloud.sh for executing the rclone sync.sudo visudo and add the details as described by (Thanks!).I won’t be putting much further effort into this, like log rolling and archiving.Īn update on progress. Since it sounds like B2 support is coming eventually to MiaB. I do not have a cronjob to archive or trim the rclone.log. You will want to change the time when this runs to suit your needs. To edit the crontab:ģ0 4 * * * sudo /usr/bin/rclone sync /home/user-data/backup/encrypted remote: -config="/root/.config/rclone/nf" -v > /rclone.log 2>&1 Then you need a crontab entry for your admin account. (To the professionals out there, is there a better way? The security hole this creates is just constrained to rclone sync, but I’d love there to be no hole, if possible.) This allows the chron job, running as your admin, the ability to exec the rclone sync command without a password. ALL = (root) NOPASSWD: NOEXEC: /usr/bin/rclone sync* Once the visudo editor comes up, add the line: SSH into your Miab box and enter the command: First you have to modify your sudoer list so that your admin account’s chron job can run rclone without asking for a password.













Rclone backblaze