![]() ![]() I write all the logs to /var/log/rclone.log (for which ideally you'd set up log rotation) and log at INFO level (reasonably chatty if you have a lot of changes, so you may want to dial it down to NOTICE level to avoid filling up your disk with log files).ĩ) Create a cron job to run this script nightly, e.g. they are partially downloaded or transferred to the NAS. The -min-age flag is used to let rclone ignore files that have been very recently modified, e.g. He also walks through connecting to Backblaze B2 and. The other thing to note is that I've chosen to use the -fast-list option (saves money and time, but uses more memory), -copy-links (follows symlinks in the backup directory) and -b2-hard-delete (by default, rclone only hides files you delete locally, which means they still cost you money with this option they are gone from the remote backup. During this video demo, Spencer will demonstrate how to install Rclone and connect to a cloud service. You could also just ignore this part and check the logs periodically, or find some other alerting system. Google how to do this if you don't know already. For that to work, you have to have postfix or another MTA set up in the jail. Thanks Hunter for this excellent write-up. The if/else/fi bit at the end is sending an email telling me if the backup succeeded or failed (the absence of an email overnight means the backup didn't run). Please check the logs." | /usr/bin/mail -s "rclone backup error" $ ![]() I used the following command to do sync \Įcho "An error occurred. You likely want to use something like "screen" to run this in a terminal you can later detatch from and come back to. Copy the rclone binary to /usr/local/bin if you prefer to avoid typing the path each time.Ħ) Configure rclone to talk to your B2 bucket. Copy it into your jail (or download it via curl in your jail itself). You likely want the FreeBSD AMD64 binary. I think the bucket name as to be globally unique on B2 (waa?).ĥ) Download rclone from. Only needed if you want email alerts of successful/failed backups.Ĥ) Sign up to Backblaze B2 and create a "bucket" for your backups. rclone in a cron job to sync files nightly.Ģ) Mount a dataset on /mnt/Backup or similar that contains the data you want to back up.ģ) Install postfix via ports and configure it as an MTA.It's faster, cheaper and easier to manage. We now have better alternatives, and here's one of them: Instead of installing Borg and Rclone on the Unraid system, these scripts use Docker containers to do the backups. That service is discontinuing, and to be honest, Crashplan was always fairly painful to set up. HOWTO: Use BorgBackup and Rclone to backup to Backblaze B2 Here are a couple scripts to backup an Unraid directory/share to Backblaze B2 using Borg and Rclone. One thing to consider is that if your repo is somehow broken, corrupted etc. Many of us used Crashplan Home to back up a FreeNAS volume to the cloud. ![]()
0 Comments
Leave a Reply. |