Results 1 to 8 of 8
  1. #1
    MacAddict Backup Script
    sevenhelmet's Avatar
    Member Since
    May 12, 2005
    Location
    Ridgecrest, CA
    Posts
    539
    Specs:
    Aluminum Macbook 2.4Ghz; Powermac G5 2.3Ghz dual
    Smile MacAddict Backup Script
    In the August 2005 issue of MacAddict Magazine, on page 60, they have a walk-through of a backup script. I adapted this program to backup my "Users" folder as most of my data is stored there. The program runs fine, and is backing up my data as I type this.

    However, I was wondering how to adapt the script to backup my entire internal hard drive to the external in case the worst happens... What UNIX path should I enter in the script to backup my entire hard drive? Are there any other issues I will have to work around? (such as program permissions, etc.)

    Is anybody else here familiar with the script I am referring to?
    "Luck favors the prepared"

  2. #2
    MacAddict Backup Script
    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    You can put in the / as the path, but you are going to run into permissions problem.
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

  3. #3
    MacAddict Backup Script
    PowerBookG4's Avatar
    Member Since
    Jan 08, 2005
    Location
    New Jersey
    Posts
    6,188
    Specs:
    Mac Pro 8x3.0ghz 12gb ram 8800GT , MBP 2.16 2GB Ram 17 inch.
    as rman said you can put the / in the path, but I am unsure what you are talking about ... what script is this? do you have a copy of it, I am curious.
    My Website
    Blog
    I love my hosting company!
    I was on the M-F honor roll for Febuary:2006

  4. #4
    MacAddict Backup Script
    sevenhelmet's Avatar
    Member Since
    May 12, 2005
    Location
    Ridgecrest, CA
    Posts
    539
    Specs:
    Aluminum Macbook 2.4Ghz; Powermac G5 2.3Ghz dual
    OK, I tried putting in / as the path, and ran into a permissions problem as both said. How can I work around this permissions problem to back up my whole HD? (It's not a big deal- I just thought I could learn something here!)

    Here's the script:

    -- MacAddict's Ultimate Backup Script
    -- THIS SETS UP THE FOLDER ACTION
    on adding folder items to this_folder after receiving these_items

    -- YO MAC ADDICTS!!!!!
    -- SET UP YOUR INFO HERE!!!!!
    set External_Drive to "G5_PM_BACKUP"
    set Stuff_To_Backup to "/Users/"
    set Backup_Folder to "/Volumes/G5_PM_BACKUP/"
    -- YO MAC ADDICTS!!!!!!
    -- STOP MESSING WITH OUR SCRIPT!!!!!!!!

    -- NOTHING BELOW THIS LINE SHOULD BE CHANGED
    -- THIS SETS THE RSYNC SYNTAX WE NEED FOR THE COPYING
    set My_Rsync to ("rsync -a " & Stuff_To_Backup & space & Backup_Folder) as string

    tell application "Finder"

    -- CHECK FOR THE BACKUP DRIVE BEFORE PROCEEDING
    if disk External_Drive exists then
    -- ASK THE USER FOR PERMISSION TO BACKUP
    display dialog "Hey boss, would you like to backup now?"
    -- CALL THE TERMINAL TO RUN RSYNC FOR THE ACTUAL COPYING
    tell application "Terminal"
    activate
    do script My_Rsync
    end tell
    end if
    end tell
    end adding folder items to
    "Luck favors the prepared"

  5. #5
    MacAddict Backup Script
    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    I believe the easiest was to get a complete sysyem back up. Is to use Carbon Copy Cloner. You can read about it at the provided link.
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

  6. #6
    bigpixl
    Guest
    If you switch the permissions on the drive with Get Info and/or use /Volumes/"local drive", you should be fine. Maybe?

  7. #7
    bigpixl
    Guest
    instead of doing rsync -a /path/ /path/ do sudo rsync /path/ /path/. UNIX will ask for a password, which will give rsync root access. This will ensure everything gets grabbed.

  8. #8
    jamestuttard
    Guest
    hey! I was looking for a backup script and man yours is perfect! thanks!
    first time i've played with applescript.

    I love this platform.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. iMac Backup and AirportExpress/Networking plus External HD Backup
    By ItchyBone in forum Internet, Networking, and Wireless
    Replies: 2
    Last Post: 02-15-2011, 01:34 PM
  2. Terminal -- shell script -- script will only read two lines of a file
    By Straitsfan in forum OS X - Apps and Games
    Replies: 0
    Last Post: 01-30-2011, 09:04 PM
  3. MacAddict Looking For Mac Addict
    By agomez in forum Schweb's Lounge
    Replies: 3
    Last Post: 10-30-2004, 03:53 PM
  4. The Switch from a PCer to a macaddict
    By TylerMoney in forum Switcher Hangout
    Replies: 1
    Last Post: 02-15-2004, 01:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •