supress "file has vanished" when deleting dirs via rsync
authorColas Nahaboo <colas@nahaboo.net>
Tue, 23 May 2017 13:49:32 +0200
changeset 16af10f983eb68
parent 15 b6ccc2941877
child 17 599c5671b789
supress "file has vanished" when deleting dirs via rsync
rsync-incr
     1.1 --- a/rsync-incr	Mon May 22 09:33:47 2017 +0200
     1.2 +++ b/rsync-incr	Tue May 23 13:49:32 2017 +0200
     1.3 @@ -53,7 +53,7 @@
     1.4    echo "Removing old backup: $2"
     1.5    # fast rm ,see https://unix.stackexchange.com/questions/106133/why-is-rm-slow
     1.6    mkdir -p $empty
     1.7 -  rsync -a --delete $empty/ "$2"/
     1.8 +  rsync -a --delete --ignore-missing-args $empty/ "$2"/
     1.9    rm -rf "$2"; 
    1.10  }
    1.11