Merge branch 'master' of home:dvl/backup
authorCarl N Baldwin <cnb@plane.(none)>
Tue, 18 Oct 2005 02:46:22 +0000 (20:46 -0600)
committerCarl N Baldwin <cnb@plane.(none)>
Tue, 18 Oct 2005 02:46:22 +0000 (20:46 -0600)
rsync-cmd.sh [new file with mode: 0755]

diff --git a/rsync-cmd.sh b/rsync-cmd.sh
new file mode 100755 (executable)
index 0000000..2ee3682
--- /dev/null
@@ -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
+