Run backups with low nice priority
This commit is contained in:
parent
c3261071f4
commit
c911bade2a
|
@ -1 +1 @@
|
|||
__version__ = "0.0.6"
|
||||
__version__ = "0.0.7"
|
||||
|
|
|
@ -161,7 +161,9 @@ def backup(profile, conf, force=False):
|
|||
# CD to local source dir
|
||||
# tar+gz data and stream to backup server
|
||||
|
||||
args_tar = ['tar', '--exclude=.datadb.lock']
|
||||
args_tar = ['ionice', '-c', '3',
|
||||
'nice', '-n', '19',
|
||||
'tar', '--exclude=.datadb.lock', '--warning=no-file-changed', '--ignore-failed-read']
|
||||
|
||||
# Use pigz if available (Parallel gzip - http://zlib.net/pigz/)
|
||||
if has_binary("pigz"):
|
||||
|
|
Loading…
Reference in New Issue