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”

Zynq with RedPitaya from scratch: Hello PS World

In a previous post we installed the necessary tools to develop applications for the Xilinx Zynq SoC family. In this post we are going to say Hello from the processing system (PS) in the Zynq SoC. As a platform I am using the RedPitaya board. With only 199$ it is the cheapest Xilinx Zynq board on the market. Unfortunately the hardware is not open source, but with the open source software, I could figure out the necessary settings to get this board running.

Continue reading “Zynq with RedPitaya from scratch: Hello PS World”

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”

Installing Vivado on Ubuntu VirtualBox

Recently I wanted to do some development on the Xilinx Zynq platform from scratch. Since I am working on a Mac and the necessary software is only available for Windows/Linux I set up an Ubuntu virtual machine and tried to get the toolchain up and running. There were some obstacles on the way that I want to show you to save yourself some time and effort. So fire up that virtual machine and get ready for some big downloads!

Continue reading “Installing Vivado on Ubuntu VirtualBox”

Shell variables in C

I am currently working on a motor control project (post about it coming soon ;)) which requires a lot of parameter tuning of controllers and filters. One way would be to recompile and flash the microcontroller for each new parameter, which takes time and is quite a pain. Hence I’m working with ChibiOS which has a built in shell through serial port or USB CDC I decided to write a simple code that would enable me to change variables during runtime. In the end it was not a lot of work and I am using it, not just for parameters but also for debugging.

Continue reading “Shell variables in C”