Giter Club home page Giter Club logo

duplicity-panic-extractor's Introduction

duplicity-panic-extractor ๐Ÿ˜ณ๐Ÿ˜ฒ๐Ÿ˜ฑ

Motivation

Duplicity is an awesome software for doing incremental, secure backups. But sometimes things might fail. For example when you don't have enough room on your backup device and first full backup does not finish successfully. Then when you want to do restore, you might end with something like:

duplicity restore file:///my_backup /foo
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
GnuPG passphrase:
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1494, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1488, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1337, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1422, in do_backup
    restore(col_stats)
  File "/usr/bin/duplicity", line 697, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/bin/duplicity", line 719, in restore_get_patched_rop_iter
    backup_chain = col_stats.get_backup_chain_at_time(time)
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 952, in get_backup_chain_at_time
    raise CollectionsError("No backup chains found")
CollectionsError: No backup chains found

Duplicity is not really good at providing some help at this point. Luckily there still might be a chance for you. Internally it does not use anything complicated, just some gpg, tar, and file splitting. So you might try to recover the data manually.

This repository is here to help. Maybe you can just run the script and everything will magically work. Maybe it will just give you the idea what's happening and you can fix it yourself.

HowTo use this

  1. Clone this repo
git clone [email protected]:MichalBryxi/duplicity-panic-extractor.git
  1. Run the script and cross your fingers
cd duplicity-panic-extractor
./duplicity-panic-extractor.sh ~/my-duplicity-directory

Contributing

Pull requests welcome!

Credits

duplicity-panic-extractor's People

Contributors

michalbryxi avatar

Watchers

 avatar

Forkers

helirexi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.