Notifications
Clear all

Automatic backup script - very useful

9 Posts
4 Users
0 Reactions
4 Views
(@djames)
Posts: 851
Registered
Topic starter
 

I was revising my back up script file and thought some of you might want to know how to automatically back up your projects to another location, this is a bat file that I wrote that will copy my projects directory to my backup drive on the network every day . revise file paths as needed and save as a .bat file in notepad . then go to schedule task and set to run when you want . It should only update the files that change from the previous stored version . Use at your own risk but it works for me . Beware it happens behind the scenes so make sure you have a back up to experiment with .Also you can double click on the .bat it will run on its own, to experiment..

I have not tried it but it would probably work on DropBox aswell .

"C:UsersadminDocumentsprojects2012*" "x:projects2012*" /d /q /s /y

Dropbox version

"C:UsersadminDocumentsprojects2012*" "c:UsersadminDropbox" /d /q /s /y

 
Posted : December 18, 2012 1:27 pm
(@djames)
Posts: 851
Registered
Topic starter
 

Forgot the important part xcopy

XCOPY "C:UsersadminDocumentsprojects2012*" "x:projects2012*" /d /q /s /y

This did work with Dropbox
xcopy "C:UsersadminDocumentsprojects2012*" "C:UsersadminDropboxwork*" /d /q /s /y

 
Posted : December 18, 2012 1:46 pm
(@fattiretom)
Posts: 335
Registered
 

Why not just use Drobbox Teams or Google Drive? Thats what we do. They give you a terabyte of storage and we have 5 team members. We in the process of transitioning to Google Drive so we can ad more members easier.

We dumped out server 2 years ago. No worrying about backups, no worrying about security, no worrying about hardware failure...etc. They have all your data backed up at multiple data centers around the world and the files are also stored locally on each computer.

The AutoCAD WS integration with Google Drive is also pretty slick...I can markup and even do basic modifications from my Android Tablet and Phone.

 
Posted : December 18, 2012 2:19 pm
(@bill93)
Posts: 9834
 

That's essentially what I use to back up a lot of my folders to flash.

You might want to consider the options /R /I also. To read about them, go to Start / Run and type in cmd to get a command window. Then in that window type xcopy /? to see all the options.

 
Posted : December 18, 2012 5:44 pm
(@djames)
Posts: 851
Registered
Topic starter
 

What if the online site goes down , or internet service is out . I will keep my files local and on the cloud as double backup .

 
Posted : December 18, 2012 6:23 pm
(@jimcox)
Posts: 1951
 

Your script will work - but will die completely if it finds an error

Add /C to that command line of yours for continue

 
Posted : December 18, 2012 6:51 pm
(@fattiretom)
Posts: 335
Registered
 

They are stored locally on your machine as well as in the cloud. You can work on anything off line and then it just updates when you re-connect again.

Tom

 
Posted : December 19, 2012 12:39 pm
(@fattiretom)
Posts: 335
Registered
 

I still think this is all overly complicated in todays world of cloud based backup and file storage.

Why do you need the script? With most online backup (ie Carbonite) you can just specify the directories you want backed up. With Dropbox we just set all of our projects into the Dropbox folder. Everything is backed up in real time and you can access up to 6 previous versions.

The power of cloud based backup and cloud applications is amazing. We run our project management software in the could (Trello) our invoicing and time tracking (Harvest) and our accounting (Quickbooks). We are in the process of transitions to Google Drive and Docs since we already use Gmail as our mail client (you can add your own domain to it so it's not @gmail.com) and Google calender. Half of the work I do isn't even from the office anymore, we send e-mails, attach files, markup drawings, etc all from a smartphone or tablet. The only people who have full PC's in our office anymore are the people who use CAD everyday. AutoCAD, Microstation and LGO are really the only pieces of software we use PC's for...everything else can be handled by a $250 Chromebook or a tablet.

It's all editable offline but I can't even remember the last time our internet went out...many years ago.

Tom

 
Posted : December 19, 2012 12:56 pm
(@djames)
Posts: 851
Registered
Topic starter
 

I keep my current backup files on dropbox and on a network hard drive . Also back it up on another usb hard drive and keep it in a fire proof box . 15 years worth of cad files and also just scanned all my maps from the last 15 years . And have sorted by year ...lots of data ti keep safe... google may not even be around in 10 years .

 
Posted : December 19, 2012 5:08 pm