Add an SSH configuration file for the IPless machines @ GNOME backups

This commit is contained in:
Andrea Veri 2013-12-23 16:04:32 +00:00
parent 5b4564acd4
commit af5aa06684
2 changed files with 5 additions and 2 deletions

View file

@ -35,9 +35,9 @@ LOGS_DIR='/fedora_backups/gnome/logs'
BACKUP_USER='root' BACKUP_USER='root'
for MACHINE in $MACHINES; do for MACHINE in $MACHINES; do
rsync -avz -e "ssh -i /usr/local/etc/gnome_backup_id.rsa" --bwlimit=2000 $BACKUP_USER@$MACHINE:/etc/rsyncd/backup.exclude $BACKUP_DIR/excludes/$MACHINE.exclude rsync -avz -e "ssh -F /usr/local/etc/gnome_ssh_config -i /usr/local/etc/gnome_backup_id.rsa" --bwlimit=2000 $BACKUP_USER@$MACHINE:/etc/rsyncd/backup.exclude $BACKUP_DIR/excludes/$MACHINE.exclude
cd $BACKUP_DIR/$MACHINE cd $BACKUP_DIR/$MACHINE
rsync -avz -e "ssh -i /usr/local/etc/gnome_backup_id.rsa" --bwlimit=2000 --exclude-from=$BACKUP_DIR/excludes/$MACHINE.exclude --log-file=$LOGS_DIR/$MACHINE.log $BACKUP_USER@$MACHINE:/ . rsync -avz -e "ssh -F /usr/local/etc/gnome_ssh_config -i /usr/local/etc/gnome_backup_id.rsa" --bwlimit=2000 --exclude-from=$BACKUP_DIR/excludes/$MACHINE.exclude --log-file=$LOGS_DIR/$MACHINE.log $BACKUP_USER@$MACHINE:/ .
done done

View file

@ -38,6 +38,9 @@
- name: Add a Directory for the Log files - name: Add a Directory for the Log files
file: dest=/fedora_backups/gnome/logs owner=gnomebackup group=gnomebackup state=directory file: dest=/fedora_backups/gnome/logs owner=gnomebackup group=gnomebackup state=directory
- name: Install the SSH configuration file
copy: src=$files/gnome/ssh_config dest=/usr/local/etc/gnome_ssh_config mode=0700 owner=gnomebackup
- name: Install GNOME backup key - name: Install GNOME backup key
copy: src=${private}/files/gnome/backup_id.rsa dest=/usr/local/etc/gnome_backup_id.rsa mode=0600 owner=gnomebackup copy: src=${private}/files/gnome/backup_id.rsa dest=/usr/local/etc/gnome_backup_id.rsa mode=0600 owner=gnomebackup