This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
backuppc [2018/12/17 20:36] – created admin | backuppc [2018/12/19 09:09] (current) – [Locked out from root access (no sudo possible anymore)] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== BackupPC DS 413j ====== | + | ====== BackupPC |
Based on this guide https:// | Based on this guide https:// | ||
Line 9: | Line 9: | ||
* Run it: '' | * Run it: '' | ||
+ | ===== Install BackupPC requirements ===== | ||
+ | Install packages: | ||
+ | |||
+ | <code bash> | ||
+ | ipkg install perl-compress-zlib | ||
+ | ipkg install perl-archive-zip | ||
+ | ipkg install optware-devel | ||
+ | </ | ||
+ | |||
+ | CPAN modules | ||
+ | |||
+ | <code bash> | ||
+ | cpan install File:: | ||
+ | </ | ||
+ | |||
+ | ===== Add User ===== | ||
+ | |||
+ | Add '' | ||
+ | |||
+ | ===== 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 | ||
+ | < | ||
+ | vi /etc/passwd | ||
+ | </ | ||
+ | |||
+ | ===== Ping Command ===== | ||
+ | |||
+ | < | ||
+ | $Conf{PingCmd} = 'sudo $pingPath -c 1 -w 3 $host'; | ||
+ | </ | ||
+ | |||
+ | ===== Change sudoers file ===== | ||
+ | |||
+ | |||
+ | After root ALL ... add the following in / | ||
+ | < | ||
+ | admin ALL = NOPASSWD: /bin/ping | ||
+ | backuppc ALL = NOPASSWD: /bin/ping | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Watch progress ===== | ||
+ | |||
+ | Client - the machine where data is pulled from | ||
+ | |||
+ | < | ||
+ | watch "lsof -n | grep rsync | egrep ' (REG|DIR) ' | egrep -v '( (mem|txt|cwd|rtd) |/ | ||
+ | </ | ||
+ | |||
+ | Server - your backuppc instance | ||
+ | |||
+ | < | ||
+ | watch "lsof -n | grep rsync | egrep ' (REG|DIR) ' | egrep -v '( (mem|txt|cwd|rtd) |/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Locked out from root access (no sudo possible anymore) ===== | ||
+ | |||
+ | Works 8-): | ||
+ | |||
+ | https:// |