[Chicago-talk] Merging two dir's into a third
Randal L. Schwartz
merlyn at stonehenge.com
Wed Feb 18 14:02:52 CST 2004
>>>>> "Don" == Don Drake <don at drakeconsult.com> writes:
Don> This is not true. My tar command on Linux and Solaris return non-zero upon
Don> failure. Maybe time for an upgrade?
Don> However, my example will return 0 if the disk fills, because the command
Don> "tar cvf - *" was successful, and the rest of the commands were piped and
Don> Wrapping the entire line in parentheses "(tar cvf - * | (cd ../dirc; tar
Don> xvf -) )" would fix that.
rsync -av /src/dir1/ /dst/dir/
rsync -av /src/dir2/ /dst/dir/
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
More information about the Chicago-talk