Return to backup_servers CVS log | Up to [local] / openbsd / backup_config |
1.1 ! andrew 1: #!/bin/sh ! 2: # $RedRiver$ ! 3: ! 4: backup_dir=/var/spool/server_backups/ ! 5: ! 6: for s in \ ! 7: rrlhcbld0100 \ ! 8: ; do ! 9: local _filename=`ssh root@$s sh < backup_config | tail -1` ! 10: echo ? $? ! 11: if [ "$?" -eq 0 ]; then ! 12: echo copying scp root@${s}:$_filename $backup_dir ! 13: scp root@${s}:${_filename# } $backup_dir ! 14: fi ! 15: done