Skip to content

Instantly share code, notes, and snippets.

@introom
Created June 6, 2013 15:04
Show Gist options
  • Save introom/5722204 to your computer and use it in GitHub Desktop.
Save introom/5722204 to your computer and use it in GitHub Desktop.
some settings for rdiff-backup
useradd -d /dir_for_backup -m databackup
su - databackup
ssh-keygen -t rsa
content:
host A_Backup
hostname Server_A_Address
user root
identityfile /dir_for_backup/.ssh/id_rsa
compression yes
protocol 2
command="rdiff-backup --server --restrict-read-only /",no-pty,no-agent-forwarding,no-port-forwarding,no-X11-forwarding
40 2 * * * /usr/bin/rdiff-backup A_Backup::/h/ /dir_for_backup/media
ssh-copy-id -i /dir_for_backup/.ssh/id_rsa.pub root@Server_A_Address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment