librelist archives

« back to archive

Recover backup after using PhotoRec

Recover backup after using PhotoRec

From:
Thiago Coutinho
Date:
2014-11-14 @ 20:15
Hi all.

I've partly formatted a disc where my attic repo was stored. I have used
PhotoRec to recover the files but now they're all unsorted and without the
correct filename. I have the files separated by extension. Is there a way
to discover the repo files and recover my backup?

PS.: the repo is encrypted using a passphrase.

-- 
Thiago Coutinho

"O povo não deveria temer o governo. O governo é quem deveria temer o povo."
V de Vingança

Re: [attic] Recover backup after using PhotoRec

From:
Jonas Borgström
Date:
2014-11-20 @ 20:51
On 2014-11-14 21:15, Thiago Coutinho wrote:
> Hi all.
>
> I've partly formatted a disc where my attic repo was stored. I have
> used PhotoRec to recover the files but now they're all unsorted and
> without the correct filename. I have the files separated by extension.
> Is there a way to discover the repo files and recover my backup?
Interesting, as long as the actual contents of the recovered files are
mostly okay you might be able to recover at least some of your data with
this method:

attic init /tmp/recover.attic
rm /tmp/recover.attic/index.0
rm /tmp/recover.attic/hints.0
rm /tmp/recover.attic/data/0/0

Copy all your recovered files into the data/0/ directory:

cp recoveredfile1 /tmp/recover.attic/data/0/1
cp recoveredfile2 /tmp/recover.attic/data/0/2
cp recoveredfile3 /tmp/recover.attic/data/0/3

(If you have more than 10,000 files you'll need to copy the rest into
data/1/ etc..)

The actual order isn't important.

Finally, cross your fingers and run:
attic check --repair /tmp/recover.attic

Good luck!

/ Jonas





>
> PS.: the repo is encrypted using a passphrase.
>
> -- 
> Thiago Coutinho
>
> "O povo não deveria temer o governo. O governo é quem deveria temer o
> povo."
> V de Vingança

Re: [attic] Recover backup after using PhotoRec

From:
Thiago Coutinho
Date:
2014-11-21 @ 16:43
Hi Jonas.

Thank you, I'm trying that. I've run the check repair command some hours
ago, the last line printed is:

Error reading segment 1482
attempting to recover test.attic/data/0/1482

It's still running, but I'm not sure if it's really make something, the
attic process is eating 100% of CPU. The next file have just 33M

33M    test.attic/data/0/1483

I think there's something wrong. How can I check if the process is really
working?

2014-11-20 18:51 GMT-02:00 Jonas Borgström <jonas@borgstrom.se>:

> On 2014-11-14 21:15, Thiago Coutinho wrote:
> > Hi all.
> >
> > I've partly formatted a disc where my attic repo was stored. I have
> > used PhotoRec to recover the files but now they're all unsorted and
> > without the correct filename. I have the files separated by extension.
> > Is there a way to discover the repo files and recover my backup?
> Interesting, as long as the actual contents of the recovered files are
> mostly okay you might be able to recover at least some of your data with
> this method:
>
> attic init /tmp/recover.attic
> rm /tmp/recover.attic/index.0
> rm /tmp/recover.attic/hints.0
> rm /tmp/recover.attic/data/0/0
>
> Copy all your recovered files into the data/0/ directory:
>
> cp recoveredfile1 /tmp/recover.attic/data/0/1
> cp recoveredfile2 /tmp/recover.attic/data/0/2
> cp recoveredfile3 /tmp/recover.attic/data/0/3
>
> (If you have more than 10,000 files you'll need to copy the rest into
> data/1/ etc..)
>
> The actual order isn't important.
>
> Finally, cross your fingers and run:
> attic check --repair /tmp/recover.attic
>
> Good luck!
>
> / Jonas
>
>
>
>
>
> >
> > PS.: the repo is encrypted using a passphrase.
> >
> > --
> > Thiago Coutinho
> >
> > "O povo não deveria temer o governo. O governo é quem deveria temer o
> > povo."
> > V de Vingança
>
>
>


-- 
Thiago Coutinho

"O povo não deveria temer o governo. O governo é quem deveria temer o povo."
V de Vingança

Re: [attic] Recover backup after using PhotoRec

From:
Thiago Coutinho
Date:
2014-11-21 @ 19:16
Forget it. It's running, but I think it will take ages. Let's see...

2014-11-21 14:43 GMT-02:00 Thiago Coutinho <root@thiagoc.net>:

> Hi Jonas.
>
> Thank you, I'm trying that. I've run the check repair command some hours
> ago, the last line printed is:
>
> Error reading segment 1482
> attempting to recover test.attic/data/0/1482
>
> It's still running, but I'm not sure if it's really make something, the
> attic process is eating 100% of CPU. The next file have just 33M
>
> 33M    test.attic/data/0/1483
>
> I think there's something wrong. How can I check if the process is really
> working?
>
> 2014-11-20 18:51 GMT-02:00 Jonas Borgström <jonas@borgstrom.se>:
>
> On 2014-11-14 21:15, Thiago Coutinho wrote:
>> > Hi all.
>> >
>> > I've partly formatted a disc where my attic repo was stored. I have
>> > used PhotoRec to recover the files but now they're all unsorted and
>> > without the correct filename. I have the files separated by extension.
>> > Is there a way to discover the repo files and recover my backup?
>> Interesting, as long as the actual contents of the recovered files are
>> mostly okay you might be able to recover at least some of your data with
>> this method:
>>
>> attic init /tmp/recover.attic
>> rm /tmp/recover.attic/index.0
>> rm /tmp/recover.attic/hints.0
>> rm /tmp/recover.attic/data/0/0
>>
>> Copy all your recovered files into the data/0/ directory:
>>
>> cp recoveredfile1 /tmp/recover.attic/data/0/1
>> cp recoveredfile2 /tmp/recover.attic/data/0/2
>> cp recoveredfile3 /tmp/recover.attic/data/0/3
>>
>> (If you have more than 10,000 files you'll need to copy the rest into
>> data/1/ etc..)
>>
>> The actual order isn't important.
>>
>> Finally, cross your fingers and run:
>> attic check --repair /tmp/recover.attic
>>
>> Good luck!
>>
>> / Jonas
>>
>>
>>
>>
>>
>> >
>> > PS.: the repo is encrypted using a passphrase.
>> >
>> > --
>> > Thiago Coutinho
>> >
>> > "O povo não deveria temer o governo. O governo é quem deveria temer o
>> > povo."
>> > V de Vingança
>>
>>
>>
>
>
> --
> Thiago Coutinho
>
> "O povo não deveria temer o governo. O governo é quem deveria temer o
> povo."
> V de Vingança
>



-- 
Thiago Coutinho

"O povo não deveria temer o governo. O governo é quem deveria temer o povo."
V de Vingança

Re: [attic] Recover backup after using PhotoRec

From:
Thiago Coutinho
Date:
2014-11-21 @ 20:55
Jonas, is there a way to speed up this check process? The process's running
for 7-8 hours and is still on file 1571, still have 34000 files to check.

2014-11-21 17:16 GMT-02:00 Thiago Coutinho <root@thiagoc.net>:

> Forget it. It's running, but I think it will take ages. Let's see...
>
> 2014-11-21 14:43 GMT-02:00 Thiago Coutinho <root@thiagoc.net>:
>
> Hi Jonas.
>>
>> Thank you, I'm trying that. I've run the check repair command some hours
>> ago, the last line printed is:
>>
>> Error reading segment 1482
>> attempting to recover test.attic/data/0/1482
>>
>> It's still running, but I'm not sure if it's really make something, the
>> attic process is eating 100% of CPU. The next file have just 33M
>>
>> 33M    test.attic/data/0/1483
>>
>> I think there's something wrong. How can I check if the process is really
>> working?
>>
>> 2014-11-20 18:51 GMT-02:00 Jonas Borgström <jonas@borgstrom.se>:
>>
>> On 2014-11-14 21:15, Thiago Coutinho wrote:
>>> > Hi all.
>>> >
>>> > I've partly formatted a disc where my attic repo was stored. I have
>>> > used PhotoRec to recover the files but now they're all unsorted and
>>> > without the correct filename. I have the files separated by extension.
>>> > Is there a way to discover the repo files and recover my backup?
>>> Interesting, as long as the actual contents of the recovered files are
>>> mostly okay you might be able to recover at least some of your data with
>>> this method:
>>>
>>> attic init /tmp/recover.attic
>>> rm /tmp/recover.attic/index.0
>>> rm /tmp/recover.attic/hints.0
>>> rm /tmp/recover.attic/data/0/0
>>>
>>> Copy all your recovered files into the data/0/ directory:
>>>
>>> cp recoveredfile1 /tmp/recover.attic/data/0/1
>>> cp recoveredfile2 /tmp/recover.attic/data/0/2
>>> cp recoveredfile3 /tmp/recover.attic/data/0/3
>>>
>>> (If you have more than 10,000 files you'll need to copy the rest into
>>> data/1/ etc..)
>>>
>>> The actual order isn't important.
>>>
>>> Finally, cross your fingers and run:
>>> attic check --repair /tmp/recover.attic
>>>
>>> Good luck!
>>>
>>> / Jonas
>>>
>>>
>>>
>>>
>>>
>>> >
>>> > PS.: the repo is encrypted using a passphrase.
>>> >
>>> > --
>>> > Thiago Coutinho
>>> >
>>> > "O povo não deveria temer o governo. O governo é quem deveria temer o
>>> > povo."
>>> > V de Vingança
>>>
>>>
>>>
>>
>>
>> --
>> Thiago Coutinho
>>
>> "O povo não deveria temer o governo. O governo é quem deveria temer o
>> povo."
>> V de Vingança
>>
>
>
>
> --
> Thiago Coutinho
>
> "O povo não deveria temer o governo. O governo é quem deveria temer o
> povo."
> V de Vingança
>



-- 
Thiago Coutinho

"O povo não deveria temer o governo. O governo é quem deveria temer o povo."
V de Vingança

Re: [attic] Recover backup after using PhotoRec

From:
Jonas Borgström
Date:
2014-11-21 @ 21:26
On 2014-11-21 21:55, Thiago Coutinho wrote:
> Jonas, is there a way to speed up this check process? The process's
> running for 7-8 hours and is still on file 1571, still have 34000
> files to check.
Hmm, I think something is not right here. Are you sure all these 34000
files are attic segment files? (They should contain the string
"ATTICSEG" as the first 8 bytes).
The reason I ask is that the "attempting to recover" part should only
kick in if the segment file is somehow damaged, not if it's just the
filename that has been lost.

What you're seeing is most likely Attic desperately trying to salvage
data from non-attic files.

So i think your options are either to just wait, or to delete all
non-attic files and restart.

/ Jonas


>
> 2014-11-21 17:16 GMT-02:00 Thiago Coutinho <root@thiagoc.net
> <mailto:root@thiagoc.net>>:
>
>     Forget it. It's running, but I think it will take ages. Let's see...
>
>     2014-11-21 14:43 GMT-02:00 Thiago Coutinho <root@thiagoc.net
>     <mailto:root@thiagoc.net>>:
>
>         Hi Jonas.
>
>         Thank you, I'm trying that. I&# 39;ve run the check repair
>         command some hours ago, the last line printed is:
>
>         Error reading segment 1482
>         attempting to recover test.attic/data/0/1482
>
>         It's still running, but I'm not sure if it's really make
>         something, the attic process is eating 100% of CPU. The next
>         file have just 33M
>
>         33M    test.attic/data/0/1483
>
>         I think there's something wrong. How can I check if the
>         process is really working?
>
>         2014-11-20 18:51 GMT-02:00 Jonas Borgström <jonas@borgstrom.se
>         <mailto:jonas@borgstrom.se>>:
>
>             On 2014-11-14 21:15, Thiago Coutinho wrote:
>             > Hi all.
>             >
>             > I've partly formatted a disc where my attic repo was
>             stored. I have
>             > used PhotoRec to recover the files but now they're all
>             unsorted and
>             > without the correct filename. I have the files separated
>             by extension.
>             > Is there a way to discover the repo files and recover my
>             backup?
>             Interesting, as long as the actual contents of the
>             recovered files are
>             mostly okay you might be able to recover at least some of
>             your data with
>             this method:
>
>             attic init /tmp/recover.attic
>             rm /tmp/recover.attic/index.0
>             rm /tmp/recover.attic/hints.0
>             rm /tmp/recover.attic/data/0/0
>
>             Copy all your recovered files into the data/0/ directory:
>
>             cp recoveredfile1 /tmp/recover.attic/data/0/1
>             cp recoveredfile2 /tmp/recover.attic/data/0/2
>             cp recoveredfile3 /tmp/recover.attic/data/0/3
>
>             (If you have more than 10,000 files you'll need to copy
>             the rest into
>             data/1/ etc..)
>
>             The actual order isn't important.
>
>             Finally, cross your fingers and run:
>             attic check --repair /tmp/recover.attic
>
>             Good luck!
>
>             / Jonas
>
>
>
>
>
>             >
>             > PS.: the repo is encrypted using a passphrase.
>             >
>             > --
>             > Thiago Coutinho
>             >
>             > "O povo não deveria temer o governo. O governo é quem
>             deveria temer o
>             > povo."
>             > V de Vingança
>
>
>
>
>
>         -- 
>         Thiago Coutinho
>
>         "O povo não deveria temer o governo. O governo é quem deveria
>         temer o povo."
>         V de Vingança
>
>
>
>
>     -- 
>     Thiago Coutinho
>
>     "O povo não deveria temer o governo. O governo é quem deveria
>     temer o povo."
>     V de Vingança
>
>
>
>
> -- 
> Thiago Coutinho
>
> "O povo não deveria temer o governo. O governo é quem deveria temer o
> povo."
> V de Vingança