

See later for ransomware protection guide too Step 2: Set up filters, etc. Read the 1001 different guides out there including the ones written by Backblaze on their blog. It may not be the most elegant hack, but it is working for me on 2 boxes. Step 1: Set up rclone for B2 I am NOT going to go into this. If your rclone cloud setup was previously functioning manually, it should now be automated to backup your data. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/binġ6 4 * * * root /home/username/mailinabox/management/rclone-cloud.sh > /home/username/mailinabox/management/rclone.log 2>&1 ‘#’ Rclone scheduled sync for duplicity backups Inside of /etc/cron.d/ create a file (rclone) with the following:.I could do 45 rclone commands, one for each subdirectory, to one B2 bucket. Make sure rclone-cloud.sh is executeable: I could do one rclone command to copy the entire NAS to one B2 bucket. 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!).Because at this point you will not yet have set up a remote location, you will be prompted to do so. It has been revealed unto me that you begin this by typing rclone config in the terminal.
USING RCLONE BACKBLAZE UPDATE
I won’t be putting much further effort into this, like log rolling and archiving.Īn update on progress. Once you have installed rclone, you verily have to configure it to send your Virtualmin backups to Backblaze B2. Since it sounds like B2 support is coming eventually to MiaB. One thing to consider is that if your repo is somehow broken, corrupted etc.
USING RCLONE BACKBLAZE ARCHIVE
I do not have a cronjob to archive or trim the rclone.log.

USING RCLONE BACKBLAZE FREE
If your data is large, then IDrive e2 offers a FREE cloud server with unlimited bandwidth.

You will want to change the time when this runs to suit your needs. Move your data from other cloud storage providers using rclone. 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.
