User Tools

Site Tools



Every network administrator has at least heared of rsync, the utility the synchronises file systems or directories - in most cases across different machines. We will use rsync here to backup data on a QNAP NAS.

Preparing the NAS

Log into the NAS via SSH.

Creating a backup user

First we create a separate group for our backup user.

addgroup remotebackup

Next comes the user account.

adduser -h /home/remotebackup/ -s /bin/false -G remotebackup remotebackup

The home directory is necessary because we need a place where we can store the SSH key.

mkdir /home/remotebackup/.ssh

Generate the key pair:

ssh-keygen -t rsa -b 2048

When asked for the target location of the key answer:


Do not use a passphrase since this would defeat the purpose of having non-interactive backups.

Give the .ssh directory and its contents to the remotebackup user:

chown -R remotebackup:remotebackup /home/remotebackup/.ssh
qnap_nas_as_target_for_rsync.txt · Last modified: 2015/05/17 17:44 (external edit)