Backups
I'm using duplicity for backups. I'm trying to back up every single machine to milkweed, an old box with a lot of disk. So far so good.
Adding a Box
get the install-backup.sh script on the client end.
- run it and leave the SSH key visible on the screen.
- open a new xterm and ssh to milkweed.
run /root/setup_server.sh clientname (eg ./setup_server.sh edison1 )
- paste the SSH key from the client into the screen (this is a vi session editing the correct authorized_keys file on milkweed)
Restoring With Duplicity
- partition and mount the empty filesystem
- make a new ssh key to access the duplicity volumes
- make sure duplicity has --numeric-owner patch
use --numeric-owner
use --scp-command "scp -i path-to-identity-file" and --sftp-command "sftp -o IdentityFile=path-to-identity-file".
test with collection-status
use --force to overwrite existing directories, AKA mount points
- make a script of your duplicity command because it will be very long
- run it
- chroot to the new system
- make a /proc,/dev,/dev/shm,/dev/pts and any other missing mountpoints.
