Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22
  1. #21  
    FYI: Ubuntu lucid + mobile hotspot = fail
  2. #22  
    I understand that this is an old thread, but I recently found it and loved the idea of using rsync. I just wanted to post in-case anyone else comes across this is would like some more info. I do not claim to know what I'm doing, but this has been working for me for the last 4 days. Follow all the directions in the first post, changing the following:

    I use this for my "/etc/cron/crontabs/root":
    # format:
    # minute(0-59) hour(0-23) day(1-31) month(1-12) weekday(0-6) command
    #Uncomment to create a log file
    #0 0,8,12,16,20 * * * echo "Successful Backup -" `date` >> /media/internal/cronlog
    #Runs the sync script every 4 hours
    0 0,4,8,12,16,20 * * * /var/home/root/
    And this for my "/var/home/root/"
    IPADDRESS=`$IFCONFIG | grep -E 'inet addr:[0-9]' | grep -v '' | awk '{ print $2}'`
    SSHnKEY="ssh -i /var/home/root/.ssh/id_rsa"
    EXCLUDE="--exclude /.Trash-1001/ --exclude /.Trash-1000/ --exclude /.palm/"
    #if you change the following to "/" it should backup the whole phone
    #change the following the folder you want your files stored in
    #HOME is your computer's address on your local router, DynDNS is your account
    export PATH
    #Change the addr to your phone's ip address, and your home router's ssid
    if [ "${IPADDRESS:0:16}" == "addr:" ]; then
    	MYSSID="Your router SSID"
    	SSID=$( /sbin/iwconfig eth0 | grep  ESSID | awk -F 'ESSID:"' '{print $2}' | awk -F '"' '{print $1}' )
    	if [ "$SSID" == "$MYSSID"  ]; then    
    		$RSYNC -avz -e "$SSHnKEY" --size-only $EXCLUDE --progress $TOBACKUP $HOME:$BACKUPTO
    		$RSYNC -avz -e "$SSHnKEY" --size-only $EXCLUDE --progress $TOBACKUP $DynDNS:$BACKUPTO
    	$RSYNC -avz -e "$SSHnKEY" --size-only $EXCLUDE --progress $TOBACKUP $DynDNS:$BACKUPTO
    exit 0
    This backs up my internal folder every 4 hours (ish, it's missed on occaision, not sure why). I've been using it my mine and my wife's pre. It will check if you're on your home router or over the internet. I recommend doing the first run of your over your wifi because it will be kind of large.

    PS, I run Ubuntu on my home comp.
Page 2 of 2 FirstFirst 12

Posting Permissions