Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    dm.zodb.repair 1.0

    Download button

    No screenshots available
    Downloads: 156  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Dieter Maurer | More programs
    ZPL / FREE
    November 11th, 2010, 10:13 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    dm.zodb.repair description

    ZODB: recover lost objects from a backup

    dm.zodb.repair is a module that contains a function to restore lost objects from a ZODB backup. In the future, it might grow further tools for ZODB repair.
    recover.restore_from_backup

    The module recover defines the function restore_from_backup to restore lost objects from a ZODB backup. restore_from_backup has parameters lost, backup and target.

    lost is an iterable of oids identifying objects lost in target. The oids might e.g. have been found by the standard fsrefs utility.

    backup and target are open ZODB storages. backup is read only and can have been opened read only; target is read and written.

    restore_from_backup reads the objects identified by the oids in lost from backup and writes them to target. If such a restored object contains references to other objects not available in target, they are restored recursively. The operations are logged via Python's standard logging subsystem.

    Example usage:

    from logging import basicConfig, getLogger, INFO
    from ZODB.FileStorage.FileStorage import FileStorage
    from dm.zodb.repair.recover import restore_from_backup

    basicConfig()
    logger = getLogger(); logger.setLevel(INFO)

    lost = [....] # list of oids for lost objects, e.g. derived from "fsrefs" output

    backup = FileStorage('backup.fs', read_only=True)
    target = FileStorage('target.fs')
    restore_from_backup(lost, backup, target)
    backup.close()
    target.close()



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    recover objects | repair objects | recover | objects | backup

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM