1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-29 19:26:40 +00:00

increase checkpoint-interval default from 300 to 1800s, fixes #896

doing a checkpoint can be expensive, if the repo connection is slow and/or
accessed via a network filesystem and/or the repo is large.

thus: don't do it too often.
This commit is contained in:
Thomas Waldmann 2016-06-27 20:05:20 +02:00
parent 323894d195
commit c201654f45

View file

@ -1487,8 +1487,8 @@ def build_parser(self, prog=None):
help='manually specify the archive creation date/time (UTC). ' help='manually specify the archive creation date/time (UTC). '
'alternatively, give a reference file/directory.') 'alternatively, give a reference file/directory.')
archive_group.add_argument('-c', '--checkpoint-interval', dest='checkpoint_interval', archive_group.add_argument('-c', '--checkpoint-interval', dest='checkpoint_interval',
type=int, default=300, metavar='SECONDS', type=int, default=1800, metavar='SECONDS',
help='write checkpoint every SECONDS seconds (Default: 300)') help='write checkpoint every SECONDS seconds (Default: 1800)')
archive_group.add_argument('--chunker-params', dest='chunker_params', archive_group.add_argument('--chunker-params', dest='chunker_params',
type=ChunkerParams, default=CHUNKER_PARAMS, type=ChunkerParams, default=CHUNKER_PARAMS,
metavar='CHUNK_MIN_EXP,CHUNK_MAX_EXP,HASH_MASK_BITS,HASH_WINDOW_SIZE', metavar='CHUNK_MIN_EXP,CHUNK_MAX_EXP,HASH_MASK_BITS,HASH_WINDOW_SIZE',