Much safer way and a little less typing ;-) cd /home.orig rsync -av . /home
this, too, can be used for mirrors (and backups): cd /somedirectory/somesub rsync -av . backupserver:`pwd` jobst On Sun, Feb 10, 2008 at 04:35:09PM +1100, Matthew Hannigan ([EMAIL PROTECTED]) wrote: > On Sat, Feb 09, 2008 at 09:57:30PM +1100, Alex Samad wrote: > > > > rysnc -av /home.orig/* /home/ > > Using a * here will skip dotfiles in /home.orig. > There's probably none there but you never know. > Secondarily, anytime you use * you make it possible > to exceed to command line length. > > It's sufficient to use a trailing / to get > everything in /home.orig. > > So just > rsync -av /home.orig/ /home/ > is good > > > Note for rsync newbs; > rsync -av /home.orig /home/ > is different from > rsync -av /home.orig/ /home/ > The first will do what you want, the > second will create /home/home.orig/ > > Matt > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- People who fight may lose. People who do not fight have already lost. - Bertolt Brecht | |0| | Jobst Schmalenbach, [EMAIL PROTECTED], General Manager | | |0| Barrett Consulting Group P/L & The Meditation Room P/L |0|0|0| +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
