Scheduled Backups With Rsyncbackup On Debian Etch
Scheduled Backups With Rsyncbackup On Debian EtchVersion 1.0 This document describes how to set up and configure rsyncbackup on Debian Etch. Rsyncbackup is a Perl script that cooperates with rsync. It's easy to configure and able to create scheduled backups (partial and incremental backups). This howto is a practical guide without any warranty - it doesn't cover the theoretical backgrounds. There are many ways to set up such a system - this is the way I chose.
1 Preliminary NoteI used two standard Debian systems for this howto. The first system is the main server (192.168.0.101), the second system is the backup server (192.168.0.102) where the backups will be stored.
2 Needed Packages2.1 Main Serverapt-get install openssh-client openssh-server rsync unzip
2.2 Backup Serverapt-get install openssh-client openssh-server rsync
3 SSH KeyfilesNow let's generate SSH keyfiles that we'll later use in conjunction with rsyncbackup to authenticate against the backup server. Please note that it's also possible to generate the keyfiles with the rsyncbackup script (rsyncbackup -r) - I chose this way.
3.1 Backup ServerCreate the keyfiles - hit enter if you're asked to enter a passphrase. ssh-keygen -b 4096 -t rsa -C "Backup Key Comment" The output should look like this: Enter file in which to save the key (/root/.ssh/id_rsa): Now we have to add the public key to the list of authorized keys. cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys After that we copy the private key to the main server. scp /root/.ssh/id_rsa root@192.168.0.101:/root/.ssh/ As a last resort we create folders for the backups. mkdir -p /backups/configs/
3.2 Main ServerNow let's test if all went well. You should be able to log in to the backup server via: ssh -i /root/.ssh/id_rsa root@192.168.0.102 Afterwards log out. exit
4 Rsyncbackup On The Main Server4.1 Get Itcd /tmp/
4.2 Script & Configuration FilesNow we have to copy the rsyncbackup script to the right place ... cp /tmp/rsyncbackup/rsyncbackup/rsyncbackup /usr/local/bin/ ... before we create the configuration files. mkdir /etc/rsyncbackup/
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com





print: 
Recent comments
11 hours 3 min ago
12 hours 32 min ago
16 hours 6 min ago
19 hours 10 sec ago
21 hours 58 min ago
22 hours 39 min ago
22 hours 53 min ago
23 hours 52 min ago
1 day 57 min ago
1 day 1 hour ago