X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=scripts%2Frsync-cmd.sh;fp=scripts%2Frsync-cmd.sh;h=2ee3682403c74f4894a8a09e6b78a9a77e98824b;hb=f5d92011429ec87196013fe7aef0ff4754a8088d;hp=0000000000000000000000000000000000000000;hpb=772696716f71071ad0d9c6589acdec2e3cb5a796;p=backups%2F.git diff --git a/scripts/rsync-cmd.sh b/scripts/rsync-cmd.sh new file mode 100755 index 0000000..2ee3682 --- /dev/null +++ b/scripts/rsync-cmd.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +# This file just has some ideas about how to do the rsync command with the list +# of file produced by lsbackups + +# -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 +