On Tue, 6 Sep 2005, John David Anderson wrote:

I'd like to set up my FC3 box to be a backup for my home folder on my OS X machine. I've tried getting rsync to work, but I can't seem to get it to go. Could someone point me in the right direction or show me how to set this up?

I like rsync because it can work over ssh, and because it will only copy new changes - if there's a better solution, I'm very open to it.

I've set up quite a few rsync backups ... let me know the details of your setup and I'll try and give you some advice. Here's what I have on my home computer at the moment:

#### backup.sh ####
#!/bin/bash

BACKUP_DIRS="home data etc root usr"
BACKUP_COMMAND="rsync --delete -aSuvze ssh"
BACKUP_HOST="[EMAIL PROTECTED]:/backups/"
BACKUP_EXCLUDE=".opera/cache4/"

for DIR in $BACKUP_DIRS; do
  echo $BACKUP_COMMAND --exclude $BACKUP_EXCLUDE /$DIR $BACKUP_HOST
  $BACKUP_COMMAND --exclude $BACKUP_EXCLUDE /$DIR $BACKUP_HOST
done;
#### end backup.sh ####

I then stick this in the crontab of the computer I want to be backed up, and have it email the results to me. Let me know if you have any questions. Have you get ssh-keys working?

  ~ Ross

--------------------
BYU Unix Users Group http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/

Reply via email to