backup
(mt) Set up authorized keys (to enable automatic login)
Copy your public key from the machine you want to backup to.
sh-3.2$ cat ~/.ssh/id_rsa.pub
Enable SSH and then SSH into (mt).
-bash-3.2$ cd
-bash-3.2$ whoami
[username]
-bash-3.2$ su
Password:
[root@domain domain.com]# mkdir .ssh
[root@domain domain.com]# chown [username] .ssh/
[root@domain domain.com]# exit
-bash-3.2$ vi .ssh/authorized_keys2
[paste in copied keys making sure you remove pasted in linebreaks]
-bash-3.2$ chmod 600 .ssh/authorized_keys2
Test [...]
Because the source server runs an older version of rsync, rdiff-backup cannot run directly. So we rsync to the destination server first then run rdiff-backup over the local copy. Also, because its a production server, we limit the outgoing speed so as not to compromise the server’s ability to serve.
rossetti@Wakatipu:~$ cat /media/backup/backup-pukohu.sh
#!/bin/bash
SOURCE=laudanum-backup
DEST=/media/backup/pukohu
DESTR=/media/backup/pukohu-rdiff-backup
EXCLUDE=/media/backup/backup-pukohu-exclude.txt
LIMIT=100 [...]
http://www.linuxdevcenter.com/pub/a/linux/2003/03/06/nfs_backup.html
Follow the quick set up NFS guide on your server.
Download, burn and boot a recent Knoppix Live CD.
Mount the Windows C: drive by double clicking its icon on the Knoppix desktop
Mount the NFS share under Knoppix.
knoppix@Knoppix:~$ sudo mkdir /media/transit
knoppix@Knoppix:~$ sudo mount -o nolock 10.0.0.7:/media/backup/transit /media/transit
Copy over the files
knoppix@Knoppix:~$ tar -cf – /media/hda1/ | tar -xvpf – [...]