search for: rsync_action

Displaying 1 result from an estimated 1 matches for "rsync_action".

Did you mean: sync_action
2007 Sep 04
0
DO NOT REPLY [Bug 4621] "-p" option to simulate "mkdir -p" for rsync
...the dir path exists. if [ ! -d "${RSYNC_TARGET%/*}" ]; then mkdir -p "${RSYNC_TARGET%/*}" fi fi # Load $1..$$-1 into bash array. Why? because this is <long param with-spaces> safe. declare -a RSYNC_ACTION local RSYNC_ACTION # If we got only 1 parameter (only source). if [ $# -eq 1 ]; then RSYNC_ACTION[0]="$1" RSYNC_ACTION[1]="$RSYNC_TARGET" else # for more then one... load them all into array....