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 / View on Github external
def get_config(conf):
    global cfg
    global logfp
    config = ConfigParser.RawConfigParser(dict_type=MultiOrderedDict,
    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
        source_host = config.get('source', 'host')[0]
    except ConfigParser.NoOptionError:
        source_host = None



Travel through time in your tests.

Latest version published 5 months ago

Package Health Score

82 / 100
Full package analysis

Popular time-machine functions

Popular Python code snippets

Find secure code to use in your application or website