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.
Next revision | Previous revision | ||
linux:rsnapshot [2006/03/20 13:54] – created alien | linux:rsnapshot [2010/04/24 19:25] (current) – Add a link to my article about the NSLU2 alien | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== The rsnapshot backup solution ===== | ===== The rsnapshot backup solution ===== | ||
- | ========================================= | + | ----------------------------------------- |
Rsnapshot is a filesystem snapshot utility for making backups of local and remote systems. Using rsync and hard links, it is possible to keep multiple, full backups instantly available. The disk space required is just a little more than the space of one full backup, plus incrementals. See the [[http:// | Rsnapshot is a filesystem snapshot utility for making backups of local and remote systems. Using rsync and hard links, it is possible to keep multiple, full backups instantly available. The disk space required is just a little more than the space of one full backup, plus incrementals. See the [[http:// | ||
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 ==== | ||
+ | |||
+ | I have created a Slackware package for rsnapshot that you can download from my [[http:// | ||
==== Installing rsnapshot ==== | ==== Installing rsnapshot ==== | ||
- | ============================== | ||
These are my notes on setting up " | These are my notes on setting up " | ||
Line 16: | Line 20: | ||
Good example docs about how to set this up are:\\ | Good example docs about how to set this up are:\\ | ||
- | | + | http:// |
and it's follow-up article:\\ | and it's follow-up article:\\ | ||
- | | + | http:// |
as well as some improvements to this:\\ | as well as some improvements to this:\\ | ||
- | | + | http:// |
Now, some detailed instructions compiled from the above sources: | Now, some detailed instructions compiled from the above sources: | ||
- | ================================================================ | + | ---------------------------------------------------------------- |
Line 35: | Line 41: | ||
local# ssh remote-server | local# ssh remote-server | ||
; you might have to create the directory ~/.ssh if it doesnt exist: | ; you might have to create the directory ~/.ssh if it doesnt exist: | ||
- | ; " | + | ; " |
; if you don't get the permissions on ~/.ssh and ~/ | ; if you don't get the permissions on ~/.ssh and ~/ | ||
; passwordless login will FAIL! | ; passwordless login will FAIL! | ||
Line 57: | 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 72: | 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. | ||
+ | </ | ||