X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=scripts%2Frsync-cmd.sh;h=aa7e9f78562e3794f29235416aa23ff2473617c6;hb=fc9ecb5d043146618676cd79fe0a6659f98a3970;hp=2ee3682403c74f4894a8a09e6b78a9a77e98824b;hpb=8d4d4fb10ef1401eb1467ff97782e2b2b68539f5;p=backups%2F.git diff --git a/scripts/rsync-cmd.sh b/scripts/rsync-cmd.sh index 2ee3682..aa7e9f7 100755 --- a/scripts/rsync-cmd.sh +++ b/scripts/rsync-cmd.sh @@ -3,22 +3,13 @@ # This file just has some ideas about how to do the rsync command with the list # of file produced by lsbackups +[ $# == 1 ] || exit 1 +[ -d $1 ] || exit 1 + # -H ? -W ? rsync_opts='-W -H -l -p -t -g -o -0 --files-from=-' other_opts='--stats --progress' -# This would something like be /home -srcdir=~/test/a - -# This would be something like /mnt/dvdisoimage -dstdir=~/destdir - -# # For directories ( Do I even need this? I don't think so. ) -# find $srcdir -type d -print0 | # this just produces an example null-delimited list. -# rsync -d $rsync_opts $other_opts / $dstdir - # Should also include directories in there -find $srcdir \( -type f -o -type l -o -type d \) -print0 | # this just produces an example null-delimited list. - rsync $rsync_opts $other_opts / $dstdir - +rsync $rsync_opts $other_opts / $1