advertisement

Article:
  Automated Backups on Tiger Using rsync
Subject:   rsync backup script
Date:   2006-04-01 08:55:07
From:   TheBronx
Hi all,


after been a couple of times to lucky with restoring my apple it's time for a automated backup. As addition to the ver usefull articel I want to post a simple script. It's not the best and nicest but it will do the job!
- Also I have read a lot of articles about mounting and unmouting the external harddisk, but it won't seem to work fine. I don't want my partinioned harddisk on my desktop all the time. So with this script it will fire him up and do the backup, gives an result output on my desktop (to check if the beackup went ok, and unmounting the external HD, and restoring the silence.
p.s. check with the command "diskutil list" for the right external disks. And change the volumename with you partition name.


Well have fun, and if you guys have additions let me know.
cheers,
Henk


do shell script "echo ==rsync Backup script == >>~/Desktop/rsync.txt"
do shell script "date >>~/Desktop/rsync.txt"
do shell script "ls /Volumes/"
if result is not {"Macintosh HD", "volumename"} then
do shell script "diskutil mountDisk disk1s7"
do shell script "echo ==Disk Mounted== >>~/Desktop/rsync.txt"
do shell script "echo ==start rsync logging== >>~/Desktop/rsync.txt"
end if
do shell script "rsync -aE --progress /Users/volumename/ /Volumes/volumename/rsync >>~/Desktop/rsync.txt || echo -n"
do shell script "echo =rsync Backup Ended== >>~/Desktop/rsync.txt"
on idle
return 60
end idle


do shell script "diskutil unmountDisk /dev/disk1s7"
do shell script "diskutil unmountDisk /dev/disk1s3"
do shell script "diskutil unmountDisk /dev/disk1s5"
do shell script "echo =====Ready!===== >>~/Desktop/rsync.txt"


1 to 1 of 1
  1. rsync backup script - now Incremental with little storage impact
    2006-12-04 14:18:08  Inspector71 [View]

    • rsync backup script - now Incremental with little storage impact
      2006-12-04 14:25:36  Inspector71 [View]

1 to 1 of 1