Add ruby script to list 'interesting' dvds by date. Also changed order of user and...
[backups/.git] / rsync-cmd.sh
1 #!/bin/sh
2
3 # This file just has some ideas about how to do the rsync command with the list
4 # of file produced by lsbackups
5
6 # -H ? -W ?
7 rsync_opts='-W -H -l -p -t -g -o -0 --files-from=-'
8
9 other_opts='--stats --progress'
10
11 # This would something like be /home
12 srcdir=~/test/a
13
14 # This would be something like /mnt/dvdisoimage
15 dstdir=~/destdir
16
17 # # For directories  ( Do I even need this?  I don't think so. )
18 # find $srcdir -type d -print0 | # this just produces an example null-delimited list.
19 #   rsync -d $rsync_opts $other_opts / $dstdir
20
21 # Should also include directories in there
22 find $srcdir \( -type f -o -type l -o -type d \) -print0 | # this just produces an example null-delimited list.
23   rsync $rsync_opts $other_opts / $dstdir
24