2

We rotate 2 TrueCrypt-encrypted USB hard drives ("BACKUP 1" and "BACKUP 2") off-site each week, for our data backup system.

For both drives, the physical drive has no drive letter assigned to it (not necessary); however, both mounted, virtual drives have the letter "V" assigned to them.

enter image description here

Can anyone suggest a script which would log the volume label of the external drive?

I will schedule this to run each night, so I can see which backup drive was on-site at any given point, allowing me to see if the disk rotations are not being done according to schedule.

Any ideas or suggestions would be much appreciated.

8
  • If you really think this needs to be closed- why not add a short comment explaining why? As I've said many times before: it should be mandatory to leave a comment explaining why you want to vote to close a question. If nothing else, it would provide more useful feedback. Aug 20, 2013 at 7:41
  • 2
    It isn't immediately clear why this should be closed, except that it's very strange to use USB drives for backups in a proper enterprise environment (but really as long as they are verified I'm not sure there is anything wrong with that). Also, the term you're looking for is "volume label". Aug 20, 2013 at 8:35
  • I agree that this would be strange- if it were an enterprise environment. However, this is a small, non-profit organization with only around 750GB of data on the file server. They neither have the budget nor the need for anything more advanced. Shadow Copy is enabled, which allows previous versions for the past 4 or 5 weeks to be retrieved. Aug 20, 2013 at 9:28
  • 1
    This question appears to be off-topic because it doesn't show any research effort.
    – EEAA
    Aug 20, 2013 at 11:50
  • 2
    I am not impressed by the elitist attitude that people think they can somehow tell if there was "no research effort" on the part of the OP. There WAS research effort. It is much easier to research something than to wait hours for a response. I couldn't find what I was looking for, so I asked here as a last resort. This whole "research effort" thing is very relative and subjective. Someone with more experience might find it easy to research a problem, but someone with less may find it easier to explain the problem, so that those with more experience can nudge them in the right direction. Aug 20, 2013 at 19:51

2 Answers 2

2

The command vol v: will tell the volume label.

The output will be something like this:

Volume in drive C is System

Volume Serial Number is 86DA-23A0

You might want to write the first line of the output to file like this:

vol v:|find "Volume in drive">>drivelog.txt

1
2

Here is what I eventually did... thanks to the information from ZEDA-NL's answer:

vol v:|find "Volume in drive" >>"d:\Admin\USB backup drive rotation log.txt"

echo %date% >>"d:\Admin\USB backup drive rotation log.txt"

echo %time% >>"d:\Admin\USB backup drive rotation log.txt"

echo. >>"d:\Admin\USB backup drive rotation log.txt"

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.