Backups to Backblaze B2 Cloud Storage done right on a QNAP NAS
Install Entware on the QNAP NAS (instructions).
Install required packages using opkg
.
$ opkg update
$ opkg install git git-http make
SSH into your QNAP NAS as admin
, download the latest native restic
binary and decompress it.
$ wget -qO- https://github.com/restic/restic/releases/download/v0.9.6/restic_0.9.6_linux_amd64.bz2 | bunzip2 > restic
Then move the decompressed restic
binary to /opt/bin
and make it executable.
$ mv restic /opt/bin; chmod +x /opt/bin/restic
restic
can now be used from the command line.
$ restic -h
The official restic
binaries can be updated in place.
$ restic self-update
Set up restic
backups to Backblaze B2 Cloud Storage (instructions, steps 1 to 5).
Add a new task to crontab
and restart the daemon to backup automatically with restic
.
$ echo "0 0 * * * /usr/local/sbin/restic_backup.sh" >> /etc/config/crontab
$ crontab /etc/config/crontab && /etc/init.d/crond.sh restart
To use restic
with Backblaze B2 Cloud Storage, just source the corresponding environment.
$ source /etc/restic/b2_env.sh
$ restic snapshots