[lug] Restoring backups/scripting help help

logan garbarini logangarbarini at gmail.com
Sun Jul 10 20:33:27 MDT 2011


Sorry to bother you again, but I keep on getting the same error:
/home/logan/fix.sh: line 3: syntax error near unexpected token `echo'
/home/logan/fix.sh: line 3: `    echo "$dir"'


On Sun, Jul 10, 2011 at 8:19 PM, logan garbarini
<logangarbarini at gmail.com>wrote:

> Thanks, I'll definitely try that.  Just for clarification, Duplicity splits
> up files into 64kb blocks then archives them in a 1mb  difftar, when you
> decompress them you get a folder full  of 64kb blocks, which is why you cd
> into them.
>
>
> On Sun, Jul 10, 2011 at 7:50 PM, Lee Woodworth <blug-mail at duboulder.com>wrote:
>
>> 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
>>
>> _______________________________________________
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20110710/9329a5cc/attachment.html>


More information about the LUG mailing list