Skip to navigation

PCPro-Computing in the Real World Printed from www.pcpro.co.uk

Register to receive our regular email newsletter at http://www.pcpro.co.uk/registration.

The newsletter contains links to our latest PC news, product reviews, features and how-to guides, plus special offers and competitions.

// Home / Blogs

Posted on August 28th, 2009 by Darien Graham-Smith

My one-line, no-frills backup solution

I’ve heard it said that there are only two kinds of people in the world: those who appreciate the value of backups, and those who will.

It’s a maxim that’s been particularly on my mind lately, after I spent last month testing 21 external hard disks – almost all of which came with some sort of backup software – and then, this week, looked at two standalone backup applications as well. Right now, if there’s anyone who’s apprised of his backup options, it’s me.

But do you know which backup package I’ve chosen for my own use? None.

Keeping work files safe

Now, before you all bombard me with contemptuous comments, let me be clear. I’m not saying I don’t keep copies of important files. PC Pro is produced to a tight and immovable schedule, so none of us can afford to be blasé about the prospect of losing work. (Ask David Bayon, who once accidentally deleted the text of a twelve-page Labs section and had to pull some very late nights indeed to reproduce it in time for print.)

But I don’t need special backup software to make copies of my work files — because I save them into my Windows Live Mesh folder, from where they’re immediately beamed up to a remote server and synchronised with my laptop and home PC. In terms of data redundancy you really can’t do much better.

Ah, but, you may say: Live Mesh has comparatively limited storage, allowing you to synchronise a mere 5GB. What use is that in these days of terabyte drives?

What really needs backing up?

And that brings me to my main point. Yes, I would need a hundred Live Mesh accounts to back up my entire PC. But what exactly would I be backing up? The overwhelming majority of my hard disk space is taken up by videos, music, programs and system files — files I didn’t create myself and could easily replace.

(Yes, it’d be a pain rebuilding a music collection from scratch, but unless my MP3 player dies at the same time I can always just copy the files back from there.)

When you come down to it, if my computer were to wink out of existence tomorrow, the files I’d actually miss would add up to no more than a few gigabytes. And because the ones I’m actively working on are protected by Live Mesh (and are often wholly disposable once I’ve finished with them), the stuff that I need to back up myself changes by just a few megabytes a month.

Darien’s brute-force backup

So I have a batch file on my desktop which contains just one line:

robocopy c:\users\darien \\192.168.0.2\backup\ /b /mir /r:0 /s /xj /xa:sh /xf *.avi *.mkv *.mp3 *.vdi _*.* /xd temp* /z

This snappy command mirrors my user folder to a backup destination on another PC, recursing subdirectories but skipping NTFS junctions, system and hidden files, plus movies, music and VirtualBox disc images, files beginning with “_” (generally superfluous support files) and folders with names that start with “temp”.

The first time I ran it it took a good few minutes to do its work; but now I double-click on it whenever the mood takes me and, since it only copies changed files, it takes just a few seconds to update my backup. And if I ever need to rebuild my main machine, I can simply reinstall Windows, copy the “darien” folder back into its place and all my files (along with lots of useful application settings) are restored.

Of course, my system isn’t as versatile as a “real” backup package. It doesn’t run automatically, and it doesn’t encrypt or compress my personal data — not that it would be hard to add those capabilities if I could be bothered. And it doesn’t help me if I discover a month down the line that I’ve accidentally overwritten a vital file with gibberish.

But for all its limitations this single command has, so far, answered my backup needs admirably. I’m aware that it copies a lot of application support files that aren’t strictly necessary, but when you consider the wastage involved in a complete system backup I think it’s still a comparatively efficient approach.

Feel free to suggest refinements – or to tell me I’m an idiot, and point out what I should be doing instead. I’m interested to hear what you think.

Tags:

Posted in: Random, Real World Computing, View from the Labs

Permalink | Trackback

Follow any responses to this entry through the RSS 2.0 feed.

19 Responses to “ My one-line, no-frills backup solution ”

  1. Wayne Taylor Says:
    August 28th, 2009 at 6:16 pm

    You could use the windows task scheduler to auto run this….

     
  2. Wayne Taylor Says:
    August 28th, 2009 at 6:18 pm

    Why not use folder redirection

    Shadow Copies?

     
  3. Jonathan Cox Says:
    August 29th, 2009 at 9:36 am

    The main flaw I see with your approach is it doesn’t protect you from a true disaster – i.e. a house fire. That would destroy your primary stroage device and all the backups (including your MP3 player). Unless your live mesh account is able to store all of your unrecoverable content (photographs, music library, family video, etc.) then this would be lost. For that reason, I strongly recommend using one of the internet based backup solutions for content you really could not recover (e.g. Mozy, Carbonite, etc.) in addition to your local backup solution.

     
  4. Alan Says:
    August 29th, 2009 at 10:48 am

    Buy an 8Gb/ 16Gb USB stick and every fortnight/ month backup all your needed files to this and keep the USB stick somewhere away from your own home like your parents.

    There’s much more chance of burglary, fire or accidental damage at your home than your HDD failing.

    For issues such as accidental deletion and recovering to previous versions, use Shadow Copy in Vista and W7.

     
  5. henryg Says:
    August 29th, 2009 at 11:34 am

    A ‘layered’ approach is better/best, including offsite eg IDrive which only copies altered data from within files, so is very quick after the initial backup; and it does versioning. Many offsite backups sites offer 2gb free.

     
  6. Kevin Jones Says:
    August 30th, 2009 at 10:50 am

    Other PC Pro people recommend SyncToy, which I use and it is really beautifully simple. It does the same as the robocopy suggestion, as far as I can see.

     
  7. Andrew D Says:
    August 31st, 2009 at 5:12 am

    Also worth looking at the RichCopy utility on Technet

    http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx

     
  8. Steve Cassidy Says:
    August 31st, 2009 at 8:38 pm

    I like SyncToy, provided you can sit through the interminable .net installer. xxcopy (at http://www.xxcopy.com) is the daddy of command line tools, and has the useful attribute of not giving up at larger directory tree sizes. For GUI fans, Directory Opus is VAST, but works well – and I must say that RichCopy thing looks like quite a find!

     
  9. Gavin Moorhouse Says:
    September 1st, 2009 at 7:25 am

    Love robocopy, been using it for years now and it really is superb!

     
  10. Paul Ockenden Says:
    September 1st, 2009 at 8:32 am

    I use Rsync (or more specifically, cwRsync on Windows machines). It’s a bit command liney, but there again so is RoboCopy.

    The beauty with Rsync is that if you are syncing a 2Gb file where only 100k has changed (e.g. an onlook PST or OST file), only that 100k is copied.

    This really speeds up the backup, especially if you’re backing up over a broadband link.

    P.

     
  11. GrandpaG Says:
    September 1st, 2009 at 4:31 pm

    I use Windows Live Sync (WLS) to synchronise and backup our office PC’s. The WLS limits are 20 folders x 20,000files, each file limited to 4GB (not a problem for me).

    There are 3 PC’s in an office and 1 PC elsewhere, all synchronised with WLS, so this also gives us an off-site backup.

    Just to be sure, there is also a backup to external drives on each site.

     
  12. James Bassett Says:
    September 2nd, 2009 at 8:47 am

    Like a lot of people, I have a few different backups for different scenarios. I take a full system backup every few months, in case the whole PC dies. My most changeable stuff (work docs, financials, reviews, code etc) is all covered by SugarSynch so is near real-time. Then “memories” (music, family video, photos) go on an external hard drive that is kept somewhere else. It’s also replicated. If I upload a photo, it goes on my PC and then up to the NAS. If the wife uploads a photo, it goes on her laptop and then the NAS. So there are always two copies – somewhere.

    Actually, thinking about it, that sounds like a complete mess! Maybe I need to start again! Highly recommend SugarSynch though. Been using for a couple of years now and really handy for sharing large files too.

     
  13. Steve Cassidy Says:
    September 3rd, 2009 at 10:03 am

    Rich Copy just ran for three days straight, and has kept my copy job definition live and active even though the server it was copying to, went down. Server back up: off it trots again. This is on approx 700 gig dataset.

    Very impressive stuff.

     
  14. JH Says:
    September 3rd, 2009 at 4:28 pm

    Copy important stuff to external drive, along with full system backup, and also to 4.7GB DVD-RW. 2 of these is fine for all the user-created stuff I have. Then take them with me if I go anywhere, and leave in fireproof box/throw out window. Any work is on at least 2 locations: home, USB drive and work.

     
  15. Paul C Says:
    September 7th, 2009 at 10:35 pm

    Go to http://www.getdropbox.com.
    Get yourself a free 2 GB account.
    It will sync between any number
    of PCs running W2K or XP or Vista
    or W7. It keeps all versions so
    you can backtrack any time you
    need to. I have been using it for
    months. It works very well. It is
    fast because it transfers deltas.
    I use it for all my fast-changing
    critical data. It just keeps on
    synchronising every time you close
    a file in the sync folder, so you
    don’t have to hit a button to make
    it happen. For slow-changing
    large data I have a 100 GB account
    with http://www.humyo.com at GBP 4.59 per
    month. Between the two of these
    facilities, I have my solution.

     
  16. Dan Rickard Says:
    October 29th, 2009 at 5:50 pm

    That’s exactly what I do – except your script is better than mine in that it removes items you delete from source.
    I’d been trying to get that to work for a while, so I’ve stolen your switches. I hope you don’t mind…

     
  17. Malcolm Smith Says:
    November 15th, 2009 at 2:32 pm

    Some people are getting confused between backup and archive.
    The command line backup of work in progress to Mesh works really well.
    However, if you have files that you want to archive and keep in case of a disaster then you need to do that in an ordered way in storage that is physically away from your computer. Use whatever works for you.

     
  18. jj Says:
    March 31st, 2010 at 11:03 am

    Is there any reason why there is an Adobe keygen in that screenshot?

     
  19. Data backup ssolutions Says:
    April 27th, 2010 at 2:13 am

    Data backup ssolutions…

    This sounds cool and interesting point on online backup software..I’ll have to look into this My one-line, no-frills backup solution | PC Pro blog a bit further….

     

Leave a Reply

Spam Protection by WP-SpamFree

* required fields

* Will not be published

SEARCH
SIGN UP

Your email:

Your password:

remember me

advertisement


Hitwise Top 10 Website 2010