Shirt Pocket Discussions

Shirt Pocket Discussions (http://www.shirt-pocket.com/forums/index.php)
-   General (http://www.shirt-pocket.com/forums/forumdisplay.php?f=6)
-   -   Backup multiple volumes sequentially (Applescript) (http://www.shirt-pocket.com/forums/showthread.php?t=6220)

n6ac 06-10-2010 11:10 PM

Backup multiple volumes sequentially (Applescript)
 
-- Script by Al Cellier 2010-06-03
-- This Applescript needs YOUR folder name and needs YOUR settings files previously saved. No warranties, use at your own risk. Works for me.
-- Script will step through all files in folder "C-X" within the "Saved Settings" folder - Replace "C-X" in both places with "YOUR FOLDER"!
-- Pre-save YOUR settings files! The sequence is set by prefixing the settings filenames with 01, 02, 03 ...
-- For verification, the script displays a dialog showing the location, number of files, and filenames. When you click "OK" then it runs unattended.
-- At each file it calls on SuperDuper! to perform the backup, per the settings file

tell application "Finder"
set Settingsfolder to POSIX file "/Users/acellier/Library/Application Support/SuperDuper!/Saved Settings/C-X/" as alias
set FileList to every file in Settingsfolder
display dialog (Settingsfolder & "
" & (number of items in FileList & " items in list
") & name of items of Settingsfolder & "
Power Up the Backup Drive 'X'!") as text
repeat with i from 1 to number of items in FileList
set NamedFile to (name of item i of FileList)
tell application "SuperDuper!"
try
do shell script "sleep 5"
if status is idle then
run using settings ("C-X/" & NamedFile) without user interaction
end if
repeat while status is running
do shell script "sleep 6"
end repeat
if status is done then
tell application "SuperDuper!" to quit
do shell script "sleep 7"
end if
on error errMsg
display dialog "Oops! ... " & errMsg
end try
end tell
end repeat
end tell
display dialog ("Back ups All Complete !!
Dismount & Power down the backup drive 'X'")
end


All times are GMT -4. The time now is 11:43 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.