In a previous post I talked about how to backup to rsync.net using duplicity.
I will now show how to backup your B3 Server Mysql databases using the same method.
Be sure duplicity is installed:
# apt-get install duplicity
Generate an ssh key to connect to rsync.net
- Generate the ssh key using the defaults (don't use a password when asked):
# ssh-keygen -t rsa
- Copy your key to rsync.net (if you don't have no one there):
# scp ~/.ssh/id_rsa.pub firstname.lastname@example.org:.ssh/authorized_keys
- If you already have a key from another machine or user in rsyn.net, you need to add a new one:
# cat ~/.ssh/id_rsa.pub | ssh email@example.com 'dd of=.ssh/authorized_keys oflag=append conv=notrunc'