Jump to content
VectorVonDoom

Backup Scripts

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

Share this post


Link to post
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

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | 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.