How to use time-machine - 1 common examples

To help you get started, we’ve selected a few time-machine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github infinet / rsync-time-machine / time-machine.py View on Github external
def get_config(conf):
    global cfg
    global logfp
    config = ConfigParser.RawConfigParser(dict_type=MultiOrderedDict,
                                          allow_no_value=True)
    config.read(conf)
    cfg = {'dest_path': None,
           'min_space': MIN_SPACE_REQUIREMENT,
           'min_inodes': MIN_INODES_REQUIREMENT,
           'keep_all': KEEP_ALL,
           'keep_one_per_day': KEEP_ONE_PER_DAY,
           'keep_one_per_week': KEEP_ONE_PER_WEEK,
           'keep_one_per_month': KEEP_ONE_PER_MONTH
           }
    try:
        source_host = config.get('source', 'host')[0]
    except ConfigParser.NoOptionError:
        source_host = None

    try:

time-machine

Travel through time in your tests.

MIT
Latest version published 2 months ago

Package Health Score

91 / 100
Full package analysis

Popular time-machine functions