[Nottingham] backup commands

Andy Smith andy at lug.org.uk
Sat Aug 4 19:21:18 BST 2007


Hi,

On Sat, Aug 04, 2007 at 06:15:07PM +0000, vanschoo at speakeasy.net wrote:
> when you copy to a USB stick it's important to verify right then
> that the info on the USB stick completely matches that on the
> source media.
> 
> Can someone post a short script or just some sample commands for
> doing this? I'd just like to see examples of the options and
> commands others are using - sort of as a starting point for
> deciding what I want to use.

For a single file?  "md5sum" will do it:

$ cp final.tar final2.tar
$ md5sum final.tar final2.tar
ba635b30f3848330ea0a25ef48d7fb9a  final.tar
ba635b30f3848330ea0a25ef48d7fb9a  final2.tar

If the hashes match then the files are identical..

Cheers,
Andy

-- 
http://bitfolk.com/ -- No-nonsense VPS hosting
Encrypted mail welcome - keyid 0x604DE5DB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.lug.org.uk/pipermail/nottingham/attachments/20070804/80c904b4/attachment.bin


More information about the Nottingham mailing list