User Tools

Site Tools


backuppc

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
backuppc [2018/12/17 21:55] – [Install BackupPC requirements] adminbackuppc [2018/12/19 10:09] (current) – [Locked out from root access (no sudo possible anymore)] admin
Line 1: Line 1:
-====== BackupPC DS 413j ======+====== BackupPC on DS 413j ======
  
 Based on this guide https://wiki.qnap.com/wiki/How_to_install_the_BackupPC_application Based on this guide https://wiki.qnap.com/wiki/How_to_install_the_BackupPC_application
Line 24: Line 24:
 cpan install File::Listing CGI::Fast cpan install File::Listing CGI::Fast
 </code> </code>
 +
 +===== Add User =====
 +
 +Add ''backuppc'' user and ''backuppc'' group using the webinterface.
 +
 +===== Change home dir =====
 +
 +Find backuppc user and adjust the path according -d param in command above.
 +Make sure you set this to the NAS disk not the rootfs
 +<code>
 +vi /etc/passwd
 +</code>
 +
 +===== Ping Command =====
 +
 +<code>
 +$Conf{PingCmd} = 'sudo $pingPath -c 1 -w 3 $host';
 +</code>
 +
 +===== Change sudoers file =====
 +
 +
 +After root ALL ... add the following in /opt/etc/sudoers:
 +<code>
 +admin ALL = NOPASSWD: /bin/ping
 +backuppc ALL = NOPASSWD: /bin/ping
 +</code>
 +
 +
 +===== Watch progress =====
 +
 +Client - the machine where data is pulled from
 +
 +<code>
 +watch "lsof -n | grep rsync | egrep ' (REG|DIR) ' | egrep -v '( (mem|txt|cwd|rtd) |/LOG)' | awk '{print $9}'"
 +</code>
 +
 +Server - your backuppc instance
 +
 +<code>
 +watch "lsof -n | grep rsync | egrep ' (REG|DIR) ' | egrep -v '( (mem|txt|cwd|rtd) |/LOG)' | awk '{print $9}'"
 +</code>
 +
 +
 +===== Locked out from root access (no sudo possible anymore) =====
 +
 +Works 8-): 
 +
 +https://forum.synology.com/enu/viewtopic.php?t=116116
backuppc.1545080142.txt.gz · Last modified: 2018/12/17 21:55 by admin