Encrypted Remote Backup using duplicity


Encrypted remote backup of a Synology NAS using Raspberry Pi and duplicity.


My Data is currently stored on a 5 bay Synology NAS running a SHR RAID. All data is periodically backed up to a external hard drive using HyperBackup. This way my data is safe from a RAID failure. BUT what if the data gets mechanically destroyed or a virus encrypts all data on the NAS? An off-site backup solution must be found.


  • Off-site backup at low to no cost therefore cloud services are expelled
  • Data transfer over SSH because security
  • Data encryption! I don’t want my data off-site and accessible to everyone
  • SSH enabled on the Synology NAS
  • A domain or IP pointing to your Synology NAS

Continue reading “Encrypted Remote Backup using duplicity”

ownCloud Backup Script


I am running ownCloud on my Synology NAS for some months now and I am pretty happy how reliable it works. But if in some case my RAID would fail I’d loose all my private data. A periodic backup needed to be set up that backs up all my data in addition to the ownCloud configuration and database.


A bash script! What else? It somehow built up from a simple copy to a full fledged backup-split-dump-log bash script that I’d like to share with you. The full script is at the bottom of this page. I’d now like to talk about the parameters you should now to use this script on your installation.

Continue reading “ownCloud Backup Script”