Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

doyle49er

macrumors newbie
Original poster
Jun 28, 2009
1
0
Hi all,

Writing as an applescript newbie - trying to figure out why my use of rsync with "do shell script" works fine all by itself backing up newly created and changed files to my backup folder,
i.e., do shell script "rsync -rv -I /Users/shared/myfolder/ /Volumes/mybackupdisk/mybackupfolder >>~/Desktop/local2rem.txt || echo -n"

But when i put it in a larger script at the end of the script (that loads data and activates an application), rsync only seems to backup new files added and ignores changed files. I have saved the script as an application.

large script is:

tell application "Finder"
set backupfolder to folder "STUDENTS" of folder "Desktop" of disk "back" of application "Finder"
set runfolder to folder "STUDENTS" of folder "myapplication" of startup disk of application "Finder"
duplicate files of backupfolder to runfolder with replacing
end tell
tell application "MYAPP" to activate
do shell script "rsync -rv -I /Users/shared/myfolder/ /Volumes/mybackupdisk/mybackupfolder >>~/Desktop/local2rem.txt || echo -n"


Appreciate any guidance

Lew
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.