repair signature files
Hi,
I run a duplicity backup on a debian testing system to rackspace cloud files just with a gpg passphrase and otherwise default configuration.
It has been running fine (with incremental backups) but the other day I noticed ALL the signature files where deleted possibly because of this bug:
https:/
I believe it was version 0.6.04 (now updated to 0.6.05)
I have an old signature file from the original full backup (in an old ./cache/duplicity folder), I would be happy if I can use that to recreate the full backup and then rebuild the incrementals from there.
Can I copy this file to the server to repair it? What format does it need encrypted, gz, split? I have tried everything I can think of and searched google/forums etc
Thanks for your time
Langdon
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Duplicity Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Kenneth Loafman
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
If you are running encrypted backups, then all you need to do is encrypt the local cache files and rename to .gpg from .gz.
If you are running unencrypted, then just copy the local cache files to the remote.
Revision history for this message
|
#2 |
Kenneth Loafman wrote:
> Question #85268 on duplicity changed:
> https:/
>
> Status: Open => Answered
>
> Kenneth Loafman proposed the following answer:
> If you are running encrypted backups, then all you need to do is encrypt
> the local cache files and rename to .gpg from .gz.
>
> If you are running unencrypted, then just copy the local cache files to
> the remote.
I misspoke, you first need to gunzip them then gpg them. Do this in a
copy of the cache directory to avoid mistakes.
Revision history for this message
|
#3 |
Thanks for your help!
> I misspoke, you first need to gunzip them then gpg them. Do this in a
> copy of the cache directory to avoid mistakes.
>
>
I tried this:
gunzip duplicity-
gpg -c duplicity-
upload duplicity-
Can now list files (previously it couldn't find a signature so couldn't
list), but it still insists on going back to full backup:
> Local and Remote metadata are synchronized, no sync needed.
> Warning, found signatures but no corresponding backup files
> Last full backup date: Tue Sep 22 16:27:04 2009
> No old backup sets found, nothing deleted.
> Local and Remote metadata are synchronized, no sync needed.
> Warning, found signatures but no corresponding backup files
> Last full backup date: Tue Sep 22 16:27:04 2009
> No signatures found, switching to full backup.
cleanup says:
>
> Local and Remote metadata are synchronized, no sync needed.
> Warning, found signatures but no corresponding backup files
> Last full backup date: Tue Sep 22 16:27:04 2009
> Found the following files to delete:
> duplicity-
> duplicity-
> Run duplicity again with the --force option to actually delete.
collection-status says:
> Local and Remote metadata are synchronized, no sync needed.
> Warning, found signatures but no corresponding backup files
> Last full backup date: Tue Sep 22 16:27:04 2009
> Collection Status
> -----------------
> Connecting with backend: CloudFilesBackend
> Archive dir: /root/.
>
> Found 1 backup chain without signatures.
> Signature-less chain 1 of 1:
> -------
> Chain start time: Tue Sep 22 16:27:04 2009
> Chain end time: Mon Oct 5 23:00:24 2009
> Number of contained backup sets: 10
> Total number of contained volumes: 432
> Type of backup set: Time: Num volumes:
> Full Tue Sep 22 16:27:04 2009 422
> Incremental Fri Sep 25 23:17:01 2009 2
> Incremental Sat Sep 26 10:15:39 2009 1
> Incremental Mon Sep 28 23:00:21 2009 1
> Incremental Tue Sep 29 23:00:21 2009 1
> Incremental Wed Sep 30 23:00:23 2009 1
> Incremental Thu Oct 1 14:08:55 2009 1
> Incremental Thu Oct 1 23:00:21 2009 1
> Incremental Fri Oct 2 23:00:25 2009 1
> Incremental Mon Oct 5 23:00:24 2009 1
> -------
>
> No backup chains with active signatures found
> No orphaned or incomplete backup sets found.
cache directory:
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
> duplicity-
I know your theory works as I have tried deleting and recovering the
signatures on a smaller backup (with no incremental sets though) maybe
this signature file isn't 100% valid (it was generated before any of the
incrementals)
I will keep trying, Thanks!
Langdon
Revision history for this message
|
#4 |
mcsniff wrote:
> Question #85268 on duplicity changed:
> https:/
>
> Status: Answered => Open
>
> mcsniff is still having a problem:
> Thanks for your help!
>> I misspoke, you first need to gunzip them then gpg them. Do this in a
>> copy of the cache directory to avoid mistakes.
>>
>>
> I tried this:
> gunzip duplicity-
> gpg -c duplicity-
> upload duplicity-
>
> Can now list files (previously it couldn't find a signature so couldn't
> list), but it still insists on going back to full backup:
>> Local and Remote metadata are synchronized, no sync needed.
>> Warning, found signatures but no corresponding backup files
>> Last full backup date: Tue Sep 22 16:27:04 2009
>> No old backup sets found, nothing deleted.
>> Local and Remote metadata are synchronized, no sync needed.
>> Warning, found signatures but no corresponding backup files
>> Last full backup date: Tue Sep 22 16:27:04 2009
>> No signatures found, switching to full backup.
> cleanup says:
>
>> Local and Remote metadata are synchronized, no sync needed.
>> Warning, found signatures but no corresponding backup files
>> Last full backup date: Tue Sep 22 16:27:04 2009
>> Found the following files to delete:
>> duplicity-
>> duplicity-
>> Run duplicity again with the --force option to actually delete.
> collection-status says:
>
>> Local and Remote metadata are synchronized, no sync needed.
>> Warning, found signatures but no corresponding backup files
>> Last full backup date: Tue Sep 22 16:27:04 2009
>> Collection Status
>> -----------------
>> Connecting with backend: CloudFilesBackend
>> Archive dir: /root/.
>>
>> Found 1 backup chain without signatures.
>> Signature-less chain 1 of 1:
>> -------
>> Chain start time: Tue Sep 22 16:27:04 2009
>> Chain end time: Mon Oct 5 23:00:24 2009
>> Number of contained backup sets: 10
>> Total number of contained volumes: 432
>> Type of backup set: Time: Num volumes:
>> Full Tue Sep 22 16:27:04 2009 422
>> Incremental Fri Sep 25 23:17:01 2009 2
>> Incremental Sat Sep 26 10:15:39 2009 1
>> Incremental Mon Sep 28 23:00:21 2009 1
>> Incremental Tue Sep 29 23:00:21 2009 1
>> Incremental Wed Sep 30 23:00:23 2009 1
>> Incremental Thu Oct 1 14:08:55 2009 1
>> Incremental Thu Oct 1 23:00:21 2009 1
>> Incremental Fri Oct 2 23:00:25 2009 1
>> Incremental Mon Oct 5 23:00:24 2009 1
>> -------
>>
>> No backup chains with active signatures found
>> No orphaned or incomplete backup sets found.
> cache directory:
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>> duplicity-
>
> I know your theory works as I have tried deleting and recovering the
> signatures on a smaller backup (with no incremental sets though) maybe
> this signature file isn't 100% valid (it was generated before any of the
> incrementals)
Without the signature file for the last incremental it's not possible to
do another incremental. It would be possible to recover the latest, but
not to continue the incremental chain.
...Ken
Revision history for this message
|
#5 |
> Without the signature file for the last incremental it's not possible to
> do another incremental. It would be possible to recover the latest, but
> not to continue the incremental chain.
>
> ...Ken
>
Can I restore the full signature and start from there again (even if I
have to delete the old incrementals) Its just that it will take days to
upload the full backup again.
Langdon
Revision history for this message
|
#6 |
mcsniff wrote:
> Question #85268 on duplicity changed:
> https:/
>
> Status: Answered => Open
>
> mcsniff is still having a problem:
>
>> Without the signature file for the last incremental it's not possible to
>> do another incremental. It would be possible to recover the latest, but
>> not to continue the incremental chain.
>>
>> ...Ken
>>
> Can I restore the full signature and start from there again (even if I
> have to delete the old incrementals) Its just that it will take days to
> upload the full backup again.
Yes, from that point you should be able to do an incremental based on
the full backup.
...Ken
Revision history for this message
|
#7 |
Thanks Kenneth Loafman, that solved my question.
Revision history for this message
|
#8 |
>>
>>> Without the signature file for the last incremental it's not possible to
>>> do another incremental. It would be possible to recover the latest, but
>>> not to continue the incremental chain.
>>>
>>> ...Ken
>>>
>>>
>> Can I restore the full signature and start from there again (even if I
>> have to delete the old incrementals) Its just that it will take days to
>> upload the full backup again.
>>
>
> Yes, from that point you should be able to do an incremental based on
> the full backup.
>
> ...Ken
>
>
Finally the problem was that the incrementals were still on the server
which was interfering with what I wanted to do.
Basically it was as you said.
- gunzip the signature file
- gpg -c signature file with the password
- copy to server.
I needed to remove all traces of the incrementals from the server and
clear the cache , but it works now
Thanks your help! it saved me a lot of time and annoyance.
Langdon