[Nottingham] backup commands
vanschoo at speakeasy.net
vanschoo at speakeasy.net
Sat Aug 4 21:02:09 BST 2007
The type of backup I have in mind would be to start at one directory and go recursively down through its subdirectories, first to save the info to the USB stick, replacing the prior info, and then doing a comparison to tell me right then if the data on the USB stick reads back as a complete match with the source data.
- njv
> -----Original Message-----
> From: Charles Samuels [mailto:charles at kde.org]
> Sent: Saturday, August 4, 2007 06:30 PM
> To: nottingham at mailman.lug.org.uk
> Subject: Re: [Nottingham] backup commands
>
> Andy Smith wrote, on Saturday 2007 August 04:
> > > 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
>
> No that won't work because linux might be caching the data you wrote on the
> disk, and thus not reading it back for the md5sum. You'd have to unmount and
> mount again.
>
> Also, you might as well use "diff" instead of md5sum :)
>
> Charles
>
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham
>
More information about the Nottingham
mailing list