rsync: --rsync-path: +ionice
authorlace <>
Sun, 18 Jul 2010 18:02:24 +0000 (18:02 +0000)
committerlace <>
Sun, 18 Jul 2010 18:02:24 +0000 (18:02 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 96d7d35..35df518 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -243,7 +243,7 @@ function finame { find . -false `
        `; }
 function mkcd { mkdir -p "$1"; cd "$1"; }
 function pushdmk { mkdir -p "$1"; pushd "$1"; }
-function rsync {(unset rsync; nice -n20 rsync -v -e ssh --progress --stats --inplace --rsync-path='nice -n20 rsync' "$@"; );}
+function rsync {(unset rsync; nice -n20 rsync -v -e ssh --progress --stats --inplace --rsync-path='nice -n20 ionice -c3 rsync' "$@"; );}
 function tohex { od -An -txC|tr -d '\n '|tr 'a-f' 'A-F';echo; }
 function edall {
        find -type f|while read -r i;do