Before I run scripts below I first mount both the source and the destination paths if necessary. Then the systax would be
similar to the following. Of course the paths differ. (Important to add the last /.) /home/…/scripts/rsync.WRAP /// This first script, rsync.WRAP runs script rsync.PRJ. *** Begin script rsync.WRAP *** #!/bin/sh -x if [ $# -lt 2 ] ; then fi SOURCE_PROJECT_NAME=`basename $1` [ -f /var/tmp/$SOURCE_PROJECT_NAME ] && rm /var/tmp/$SOURCE_PROJECT_NAME.* cd $SOURCE_PROJECT_PATH ; find . -maxdepth 3 -type d \( -name .snapshot \) -prune -o -type d -print | cpio -pvdum $DEST_NFS_SERVER > /var/tmp/$SOURCE_PROJECT_NAME.tmp 2>&1 cat /var/tmp/$SOURCE_PROJECT_NAME.tmp | grep -v “^0 blocks” | sed -e “s,$DEST_NFS_SERVER/,,g” > /var/tmp/$SOURCE_PROJECT_NAME && rm /var/tmp/$SOURCE_PROJECT_NAME.tmp cd /var/tmp ; split -l 20 $SOURCE_PROJECT_NAME $SOURCE_PROJECT_NAME. for j in `ls -1 /var/tmp/$SOURCE_PROJECT_NAME.[a-z]*`; do # Do a one time top level rsync to the project to get the files at top level *** End Script rsync.WRAP *** *** Begin Script rsync.PRJ *** |