Backup Notes

  1. Add config files to backup directory:

date
cd "$USERDIR"
rsync -rvte ssh --exclude-from=$BACKUPDIR/exception_list.txt --delete --files-from=$BACKUPDIR/backuplist.txt . $RSYNCACCT@$RSYNCSERV:backups/ |tee -a $BACKUPDIR/backup.log 2>&1
scp $BACKUPDIR/backup.log $RSYNCACCT@$RSYNCSERV:backups/
ssh $RSYNCACCT@$RSYNCSERV "chmod -R 770 backups"
date

5. Create SSH keys, in Cygwin Bash shell (accept defaults, do not use passphrase):
ssh-keygen -t rsa

  1. Copy SSH public key up to server:
    scp .ssh/id_rsa.pub 1034@usw-s001.rsync.net:.ssh/authorized_keys
  2. Make backup script executable:
    chmod 775 /cygdrive/c/Documents\ and\ Settings/<USERNAME>/cygwin-backup/backup.sh
  3. Test:
    /cygdrive/c/Documents\ and\ Settings/Bill/cygwin-backup/backup.sh
  4. Create backup.bat batch file for Windows scheduler (edit path to .sh script):
  1. Change password for the backup location, and record password in intranet:
    ssh -t 1034@usw-s001.rsync.net passwd