User Tools

Site Tools


qnap_nas_as_target_for_rsync

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
qnap_nas_as_target_for_rsync [2010/11/19 17:54]
admin created
qnap_nas_as_target_for_rsync [2015/05/17 17:44] (current)
Line 3: Line 3:
  
 ====== Preparing the NAS ====== ====== Preparing the NAS ======
 +Log into the NAS via SSH.
 +
 +===== Creating a backup user =====
 +First we create a separate group for our backup user.
 +
 +<code bash>
 +addgroup remotebackup
 +</​code>​
 +
 +Next comes the user account.
 +<code bash>
 +adduser -h /​home/​remotebackup/​ -s /bin/false -G remotebackup remotebackup
 +</​code>​
 +
 +The home directory is necessary because we need a place where we can store the [[SSH|SSH]] key.
 +
 +<code bash>
 +mkdir /​home/​remotebackup/​.ssh
 +</​code>​
 +
 +Generate the key pair:
 +<code bash>
 +ssh-keygen -t rsa -b 2048
 +</​code>​
 +
 +When asked for the target location of the key answer:
 +<​code>​
 +/​home/​remotebackup/​.ssh/​id_rsa
 +</​code>​
 +
 +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:
 +<code bash>
 +chown -R remotebackup:​remotebackup /​home/​remotebackup/​.ssh
 +</​code>​
 +
 +
 +
  
qnap_nas_as_target_for_rsync.txt ยท Last modified: 2015/05/17 17:44 (external edit)