diff --git a/.local/bin/rdiff b/.local/bin/rdiff index db77749d..6aef14d7 100755 --- a/.local/bin/rdiff +++ b/.local/bin/rdiff @@ -2,12 +2,10 @@ usage () { cat <&2 -Usage: ${0##*/} [OPTIONS] DIR1 DIR2 +Usage: ${0##*/} OLD-DIR NEW-DIR -Use rsync to display a folder tree diff between DIR1 and DIR2. - -Additional rsync OPTIONS can be used, such as '-t, --times'. -Lookup '-i, --itemize-changes' in rsync(1) for the legend. +Use rsync to display a folder tree diff between OLD-DIR and NEW-DIR. +Trailing slash is not necesssary. EOF } @@ -15,4 +13,4 @@ EOF [ "$1" = "-h" ] && usage && exit [ "$1" = "--" ] && shift -rsync -nivr -lpgod --delete --size-only "$@" +rsync -nivr --links --perms --group --owner --delete --size-only "$2/" "$1"