VMware Images:
|
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/
|




print: 
Recent comments
3 hours 51 min ago
9 hours 18 min ago
10 hours 20 min ago
11 hours 6 min ago
13 hours 12 min ago
13 hours 22 min ago
15 hours 52 min ago
16 hours 42 min ago
19 hours 18 min ago
19 hours 43 min ago