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 details)

Uploaded Source

Built Distribution

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

Uploaded Egg

File details

Details for the file restorething-0.1.0.tar.gz.

File metadata

  • Download URL: restorething-0.1.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for restorething-0.1.0.tar.gz
Algorithm Hash digest
SHA256 324601aabdaec29f5dda2e1a203b549f961d40fbbdafa7f56d0075f30095093d
MD5 e8ee3dea91afcf79259893e681cb2558
BLAKE2b-256 2434450a8ded52b57bb195a25ad200b7a71ced0007b73621460872553b39d7b7

See more details on using hashes here.

File details

Details for the file restorething-0.1.0-py2.7.egg.

File metadata

File hashes

Hashes for restorething-0.1.0-py2.7.egg
Algorithm Hash digest
SHA256 640f293afb0cc48c4bfe2d38ff8aa071573f457e53487a056d7039dce567ff93
MD5 97bd11d14420b1d0a7f271d589590962
BLAKE2b-256 e0bdb9b1cb726f799907d25681b6bbcb3e69f3cdffa32fc2b77647ab2e1a80aa

See more details on using hashes here.

Supported by

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