diff options
Diffstat (limited to 'backup.sh')
-rwxr-xr-x | backup.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -71,11 +71,11 @@ function check_borg_repo { repo_path="$userserver:$backupdir/$serverdir/$repo" fi #check if repo exists - $borg_local_path list --remote-path "$borg_remote_path" --no-files-cache "$repo_path" > /dev/null 2>&1 + $nice $borg_local_path list --remote-path "$borg_remote_path" --no-files-cache "$repo_path" > /dev/null 2>&1 if [ $? -ne 0 ] then # create repo if not exists - $borg_local_path init --remote-path "$borg_remote_path" --encryption "$borg_encryption" "$repo_path" + $nice $borg_local_path init --remote-path "$borg_remote_path" --encryption "$borg_encryption" "$repo_path" fi } @@ -97,10 +97,10 @@ function backup_dir { ret=0 if [ -f "backup.ignore" ] then - $borg_local_path create --remote-path "$borg_remote_path" --one-file-system --exclude-from "backup.ignore" --compression "$borg_compression" "$repo_path" . + $nice $borg_local_path create --remote-path "$borg_remote_path" --one-file-system --exclude-from "backup.ignore" --compression "$borg_compression" "$repo_path" . ret=$? else - $borg_local_path create --remote-path "$borg_remote_path" --one-file-system --compression "$borg_compression" "$repo_path" . + $nice $borg_local_path create --remote-path "$borg_remote_path" --one-file-system --compression "$borg_compression" "$repo_path" . ret=$? fi popd > /dev/null |