Browse Source

Lower CPU and Disk I/O priority for backups

Alexandros Ioannides 7 years ago
parent
commit
8a41402765
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-backup-users

+ 1 - 1
bin/v-backup-users

@@ -41,7 +41,7 @@ for user in $(grep '@' /etc/passwd |cut -f1 -d:); do
         echo -e "================================" >> $log
         echo -e "$user" >> $log
         echo -e "--------------------------------\n" >> $log
-        $BIN/v-backup-user $user >> $log 2>&1
+        nice -n 19 ionice -c2 -n7 $BIN/v-backup-user $user >> $log 2>&1
         echo -e "\n--------------------------------\n\n" >> $log
     fi
 done