Skip to main content

IDE Failures and backups

For 80% of people, running backups is a non-event. We simply don't consider doing them, not because we are lazy but it just never crosses our mind. Fortunately I had a happy event last week - I ran a full backup of my beloved D610 Dell Latitude's hard disk and not 2 days later the bastard failed on me. It was then I found out how much harder it is to get IDE hard disks for laptops. The 40GB HDD in it was adequate for my purposes and the smallest I could find was 120GB. Now I know how easy it is to fill 120GB of disk with music or movies or whatnot, but in context, I store very little of such things on this notebook. It's for work, and for online stuff such as Google's services and apps. At any rate, I use the wonderful TrueCrypt (www.truecrypt.org) to create encrypted partitions and then use the equally handy rsync (or in a pinch xcopy) to incrementally back that data up across the network to my servers. 

I thought perhaps I'd share how I do this, using xcopy in a batch file and with the potential of using either an external USB device or whatnot. You can get *very* fancy, but in all honesty, any backup is better than no backup so here is the script (abridged for privacy purposes) that I use:

xcopy "z:\My Documents\*" "m:\My documents\*" /C/D/E/H/Y

You can see that I'm just backing up My Documents from one location to another. The first one, on the Z:\ drive is the source and M:\ is the backup. Easy! 
The switches do the following:
/C: Continues copying even if an error occurs
/D: Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time.
/E: Copies directories and subdirectories, including empty ones.
/H: Copies hidden and system files also.
/Y: Suppresses prompting to confirm you want to overwrite an existing destination file.

Pretty straightforward really. I run it manually at the moment, but plan to put a schedule in place once I get some error correction built into it. For example, if the M:\ drive is not available I don't want it to panic and grind to a halt, much better for it to gracefully exit.

Feel free to adapt it for your purposes if any. As I noted, it's better to have *some* sort of backups than none at all. This particular one of mine doesn't catch emails or the like, fortunately for me I use Gmail so it's not really an issue - all my emails reside on the Google servers (bless them!). For everything else, there's xcopy!

Comments

Popular posts from this blog

Windows 10 Enterprise Eval - gotchas

After an annoying turn of events where my Windows 10 Enterprise USB drive failed, attempts to install Win10 onto a computer failed miserably. I turned to the net and managed to get my hands on Microsoft's Windows 10 Enterprise Evaluation. I have an enterprise key so I thought - cool! Here's the opportunity to get it going and to then upgrade the license later. Full install, patched etc and all is swell. Except when I try to upgrade. I straight up tried changing the licence key only to get a variety of errors, most of which are pertaining to the activation system being unavailable. The I try this: https://winaero.com/blog/upgrade-windows-10-evaluation-to-full-version-easily/ but it doesn't work either. Next I'll try this: h ttp://www.edugeek.net/forums/windows-10/174594-upgrading-windows-10-enterprise-90-evaluation-full.html And if all else fails, in goes the bootable USB I've now created. If only I'd had this in the first instance I would not be writing t

Plone - the open source Content Management System - a review

One of my clients, a non-profit, has a lot of files on it's clients. They need a way to digitally store these files, securely and with availability for certain people. They also need these files to expire and be deleted after a given length of time - usually about 7 years. These were the parameters I was given to search for a Document Management System (DMS) or more commonly a Content Management System (CMS). There are quite a lot of them, but most are designed for front facing information delivery - that is, to write something, put it up for review, have it reviewed and then published. We do not want this data published ever - and some CMS's make that a bit tricky to manage. So at the end of the day, I looked into several CMS systems that looked like they could be useful. The first one to be reviewed was OpenKM ( www.openkm.com ). It looked OK, was open source which is preferable and seemed to have solid security and publishing options. Backing up the database and upgradin

Fixing a black screen after doing a Kali Linux update

Kali Linux is a rolling Linux distribution designed for security and penetration work. You can find details on it here: www.kali.org . We run this excellent product for a range of different security work and it's been great. I built the image in VMplayer, then shared it to the team and we've all been at it since. A recent update broke it though - black screen, no network and completely unresponsive. There are lots of posts about similar things - mostly to do with graphics adaptors, however, we found that executing the following at a root prompt fixed it. But how to get to the root prompt from a blank screen? Linux has a number of terminals available to the user - most of us use the graphical one to do our day to day, but you can access a command line prompt without much trouble. Simply hold CTRL-ALT and then F2 or F3 down at the same time and it drops you to a command line login. BOOM. Time to fix it up. For me, and for the other fellas in the team, all it too was to