Jump to content
You must now use your email address to sign in [click for more info] ×

Backup Scripts


VectorVonDoom

Recommended Posts

Yes you can use snapshots but I prefer a separate backup file rather than having backups in the main. If the main somehow can't be read neither can your snapshots plus it's easier to look through them. The scripts copy the specified file to a specified backup folder (which must exist) and suffix the file name with the time stamp. I'm normally only working on one thing at a time but you can duplicate the lines to backup more than one file or duplicate the script for each project if you want. They work on any file, it doesn't care about the type AD/AP/AI/PS/XLS/DOC.. anything.

The first is for MacOS, backup.command, you need to make it executable. Open terminal and type "chmod 755 " then drag the command file on to terminal to complete it, press Enter. To edit it right click and select "open with" and use whatever, say textedit. At the top set the full path and file name to backup for SourceFile and the folder you want to backup to for BkupFolder, it's pretty obvious from the ones I have set. Double click to run it.

However running it will open the Terminal, and you will have to close it which isn't good. So you can use Automator to create a Mac Application that executes the script and that you can double click, add to the dock, etc.

  1. Open Automator application
  2. Choose "Application" type
  3. Type "run" in the Actions search box
  4. Double click "Run Shell Script"
  5. Drag the command file in to the input box below the Shell: /bin/bash line on the right
  6. Click the Run button in upper right corner to test it.
  7. File > Save to create the Application.

If you put in your dock it won't bounce, it just does it, don't keep clicking!

I'll post the Windows later on when I'm on my Win laptop.

 

 

Backup.command

 

Marc

ArtByMarc.me

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.