Showing posts with label automator. Show all posts
Showing posts with label automator. Show all posts

Friday, August 21, 2015

Setting up Automator to back up Mac on startup to Google Drive

I've written about using Automator to back up a Mac here.  I've had trouble getting that to work, so I now do this.

Open Automator
Create a new Application

In your Google Drive, create a folder called Backup
In the Backup folder, create a folder Desktop, Documents, etc for each folder you want to back up.

Create these processes:

Get Specified Finder Items
(choose all the folders in the Backup folder - not the Backup folder itself)
Move Folder Items to Trash
Get Specified Finder Items
(choose Documents)
Get Folder Contents
Copy Finder Items
(copy to the Documents backup folder location and choose replace existing files)
Get Specified Finder Items
(choose Desktop and click options and choose Ignore this action's input)
Get Folder Contents
Copy Finder Items
(copy to the Desktop backup folder location and choose replace existing files)

Repeat these steps for each folder you want to back up

Get Specified Finder Items
(choose FolderToBackup and click options and choose Ignore this action's input)
Get Folder Contents
Copy Finder Items
(copy to the FolderToBackup backup folder location and choose replace existing files)

---

Save the Automator application to the Applications folder
Go to System Preferences -> Users & Groups
Click Login Items
Add the application you created in Login Items





Thursday, July 4, 2013

backing up a Mac to Google Drive

I was setting up a Mac for a client and looking for a super cheap method for backing it up.  With a 30 GB quota for Google Drive, it seems logical to use Google Drive.  I can simply create a startup batch script on a PC to copy desktop, documents, and other important folders to c:\username\google drive on a PC.

On a Mac, I found a good method using "Automator," which is much easier than using AppleScript.  As far as the method I used, I basically followed option 8 here:

http://mac.tutsplus.com/tutorials/automation/10-awesome-uses-for-automator-explained/

The nice thing about the above steps is that it sets up an automated running of the script on dates/times.