Re: [OT} Need advice on rsync backups
suppose you have a file list like generated by find $BASEDIR -print
pipe through
# include all files with necessary paths
sed -ne "s,^${BASEDIR//\\*/\\*}/,+ /,;"'
:l1;/+ ../{p;s,/$,,;s,[^/]*$,,;b l1;};' |
sort -u > tmp.rsync # sort and remove duplicates
# exclude evrything not explicitly included...
echo "- *" >> tmp.rsync
and do rsync -av --include-from tmp.rsync remote:$BASEDIR $LOCALTARGET
to understand whats happening:
On Sun, Feb 16, 2003 at 09:05:25PM -0800, Ted Deppner wrote:
> Advice: Read the man page. Again. Repeat as necessary.
;)
hth,
Lars
Reply to: