Welcome to the new location of Alien's Wiki, sharing a single dokuwiki install with the SlackDocs Wiki.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:rsnapshot [2006/03/30 11:38] – alien | linux:rsnapshot [2010/04/24 19:25] (current) – Add a link to my article about the NSLU2 alien | ||
---|---|---|---|
Line 5: | Line 5: | ||
A good read is the [[http:// | A good read is the [[http:// | ||
+ | Another article worth checking is my companion article about [[linux: | ||
==== Getting the software ==== | ==== Getting the software ==== | ||
Line 62: | Line 63: | ||
* Create a user "// | * Create a user "// | ||
* Append the // | * Append the // | ||
- | | + | from=" |
- | AAAAB3NzaC1yc2EAAAAB.......0i9yTN7QTrcqKU9ugIesi3+EZnw5ES5wbpo8= | + | AAAAB3NzaC1yc2EAAAAB.......0i9yTN7QTrcqKU9ugIesi3+EZnw5ES5wbpo8= |
- | rbackup@TheVault</ | + | rbackup@TheVault |
- | * Create the ''/ | + | </ |
- | #!/bin/sh | + | * Create the ''/ |
- | case " | + | #!/bin/sh |
- | *\&*) | + | case " |
+ | *\&*) | ||
echo " | echo " | ||
;; | ;; | ||
- | | + | |
echo " | echo " | ||
;; | ;; | ||
Line 77: | Line 79: | ||
$SSH_ORIGINAL_COMMAND | $SSH_ORIGINAL_COMMAND | ||
;; | ;; | ||
- | | + | |
echo $SSH_ORIGINAL_COMMAND | echo $SSH_ORIGINAL_COMMAND | ||
;; | ;; | ||
- | | + | |
echo " | echo " | ||
;; | ;; | ||
- | | + | esac |
- | </ | + | </ |
+ | chown rbackup / | ||
+ | chmod 754 / | ||
+ | </ | ||
* Create a wrapper script for rsync (which uses sudo) in ''/ | * Create a wrapper script for rsync (which uses sudo) in ''/ | ||
/ | / | ||
</ | </ | ||
- | * Add this line to ''/ | + | * Add this line to ''/ |
+ | |||
+ | === Testing remote login === | ||
+ | |||
+ | When all configuration is complete, and before your scheduled cron jobs start, you should test whether the non-interactive passwordless login from the rsnapshot server to the remote //rbackup// account is functional.\\ You need to make a ssh connection at least once, to add the public key of the remote machine to your root account' | ||
+ | # ssh rbackup@client.my.lan | ||
+ | Rejected 3 | ||
+ | Connection to client.my.lan closed. | ||
+ | </ | ||