Difference between revisions of "Mesh/Backup"

Jump to navigation Jump to search
83 bytes added ,  01:26, 13 October 2013
m
(Created page with "Backup happens from all sudomesh servers to backup.sudomesh.org every 24 hours. The backup system uses duplicity over rsync. The backups are incremental and encrypted. = Clie...")
 
 
(2 intermediate revisions by the same user not shown)
Line 26: Line 26:
PASSPHRASE="the_duplicity_passphrase" /usr/bin/duplicity --exclude-other-filesystems / rsync://clientuser@backup.sudomesh.org/backup/
PASSPHRASE="the_duplicity_passphrase" /usr/bin/duplicity --exclude-other-filesystems / rsync://clientuser@backup.sudomesh.org/backup/
</pre>
</pre>
WARNING: Make sure the secure_backup file is only readable by root!


Key-based login has been set up for logging into backup.sudomesh.org by first creating the user clientuser on backup.sudomesh.org with a long random password, and then using ssh-copy-id from the client.
Key-based login has been set up for logging into backup.sudomesh.org by first creating the user clientuser on backup.sudomesh.org with a long random password, and then using ssh-copy-id from the client.
Line 38: Line 40:


<pre>
<pre>
root@backup:/home/ccl# ls -l
root@backup:/home/clientuser# ls -l
total 12
total 12
drwxr-x--- 2 clientuser clientuser 12288 Oct 13 01:49 backup
drwxr-x--- 2 clientuser clientuser 12288 Oct 13 01:49 backup
Line 52: Line 54:


/bin/chmod 640 /home/clientuser/backup/*
/bin/chmod 640 /home/clientuser/backup/*
/bin/chown root.ccl /home/clientuser/backup/*
/bin/chown root.clientuser /home/clientuser/backup/*
</pre>
</pre>

Navigation menu