Run backups with low nice priority

This commit is contained in:
dave 2017-04-23 20:11:20 -07:00
parent c3261071f4
commit c911bade2a
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
__version__ = "0.0.6"
__version__ = "0.0.7"

View File

@ -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"):