Skip to main content

restorething is a tool for restoring files from a syncthing versioning archive

Project description

restorething is a tool for restoring files from a syncthing verisoning directory. Supply restorething the path to the syncthing versioning directory and a date, it will index the available files in the versioning directory and restore based on the date supplied.

Restore Modes

restorething will restore files using the following modes

  • Nearest file before a specific date/time

  • Nearest file after a specific date/time

  • Nearest file before/after a specific date/time

restorething has filtering options

  • Filter files with specific string

  • Filter dir with specific string

Installation

restorething from source

$ python setup.py sdist
$ pip install dist\restorething-x.x.x.tar.gz

restorething from PyPI

$ pip install restorething

Usage

In all of the following cases, if no hour is supplied the default time value is set to 23:59:59.

Restore closest file before 6am 15th August 2016, if no file is found restorething will look for the closet file after 6am 15th August 2016.

$ python -m restorething 20160815 -vd sync/.stversions -hr 6

Restore closest file after 6am 15th August 2016, if no file is found, no file will be restored.

$ python -m restorething 20160815 -vd sync/.stversions -hr 6 -a

Restore closest file before 6am 15th August 2016, if no file is found, no file will be restored.

$ python -m restorething 20160815 -vd sync/.stversions -hr 6 -b

Restore closest file no more than 10 hours before 6am 15th August 2016, if no file is found restorething will look for the closet file no more than 10 hours after 6am 15th August 2016.

$ python -m restorething 20160815 -vd sync/.stversions -hr 6 -pm 10

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

restorething-0.1.0.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

restorething-0.1.0-py2.7.egg (31.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page