From 202ae0123998b63a4785b5e5b9f127bf5f7c2f25 Mon Sep 17 00:00:00 2001
From: Carl N Baldwin <cnb@hpsvcnb.fc.hp.com>
Date: Mon, 17 Oct 2005 11:55:24 -0600
Subject: [PATCH] Hashed out how to call rsync with list of files, links and
 directories

---
 rsync-cmd.sh | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100755 rsync-cmd.sh

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
+
-- 
2.34.1