Created
June 6, 2013 15:04
-
-
Save introom/5722204 to your computer and use it in GitHub Desktop.
some settings for rdiff-backup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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