X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=rsync-cmd.sh;fp=rsync-cmd.sh;h=2ee3682403c74f4894a8a09e6b78a9a77e98824b;hb=202ae0123998b63a4785b5e5b9f127bf5f7c2f25;hp=0000000000000000000000000000000000000000;hpb=3c9f7ebe59658ae9e45267bf01782a0864c77d48;p=backups%2F.git diff --git a/rsync-cmd.sh b/rsync-cmd.sh new file mode 100755 index 0000000..2ee3682 --- /dev/null +++ b/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 +