[lug] Restoring backups/scripting help help

Lee Woodworth blug-mail at duboulder.com
Sun Jul 10 19:50:47 MDT 2011


On 07/10/2011 07:26 PM, logan garbarini wrote:
> Hi all,
> I had a bit of a problem with my computer's drive, which shouldn't have been
> a problem except I found out that all of my daily backups somehow became
> corrupted.  I used DejaDup, the Gui to duplicity.   It gave me a problem
> with a SHA1 hash mismatch, which after several hours, I decided it was
> hopeless to try to repair all of the messed up archives.  I managed to find
> these instructions here on how to restore manually:
> https://live.gnome.org/DejaDup/Help/Restore/WorstCase#Restoring_by_Hand.
> But, I get stuck on the last step, how to recombine every file.  Is there
> any way to automate the following command for all my directories? I have 30
> GB of files still not combined.  I know that some data will be corupted but
> there were only a few of the archives damaged.  Any help would be
> appreciated, thanks in advance...
> 
> Example Command:
> 
> cd multivolume_snapshot/home/jane/essay.txt

essay.txt looks like a regular file name. Do you really mean to cd to it?

> cat * > essay.txt

Not sure what you are needing to do, but this might suggest a direction for you:

for dir in $(find /multivolume_snapshot -type d) do
   echo "$dir"
   cd "$dir"
     ????
done

If you have more directories than the command line can handle you will need to
use a pipe/file in a read loop.

HTH

> 
> --Logan Garbarini
> 
> 
> 
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety




More information about the LUG mailing list