Skip to content

bohemianoid/qnap-restic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

restic on QNAP NAS

Backups to Backblaze B2 Cloud Storage done right on a QNAP NAS

Install

Entware

Install Entware on the QNAP NAS (instructions).

Packages

Install required packages using opkg.

$ opkg update
$ opkg install git git-http make

restic

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

Setup

Set up restic backups to Backblaze B2 Cloud Storage (instructions, steps 1 to 5).

Crontab

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

Use

To use restic with Backblaze B2 Cloud Storage, just source the corresponding environment.

$ source /etc/restic/b2_env.sh
$ restic snapshots

Contributors

About

restic on QNAP NAS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published