Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
Re: [SLE] rsync syntax help
  • From: "Hylton Conacher(ZR1HPC)" <hylton@xxxxxxxxxxxxxx>
  • Date: Sat, 01 Apr 2006 22:29:37 +0200
  • Message-id: <442EE2B1.3080102@xxxxxxxxxxxxxx>
Ken Schneider wrote:
On Wed, 2006-03-29 at 13:56 -0800, Jim Cunning wrote:

On Wednesday 29 March 2006 13:34, Ken Schneider wrote:
[snip]

I would use rsync -varpltz --stats /home/hylton/ /media/backup/home

Make sure you include a closing / on the source so that you get a
recursive copy.

That's not what the closing / does. According to the man page, a trailing / on the source changes the behavior so that "You can think of a trailing / on a source as meaning 'copy the contents of this directory' as opposed to 'copy the directory by name' " Recursive copying is controlled by -r.

In your example, the contents of /home/hylton would be copied to /media/backup/home. There would be no /media/backup/home/hylton directory created--probably not what the OP expects.


It is fine to critique someone, but where is your example of what -you-
would use. What has your experience of rsync shown to be a better way to
use it?
Now now children.. :)

Ken I wanted the critique as it helps me learn. Jim was only treationg you the same way you treated me in replying to my OP. Your critique/opinion was very good but we are all here to learn. Perhaps Jim is mistaken, perhaps not.

Jim's critique helps you learn too I would think as surely the man page isn't wrong? I'm not saying he is right and I am not saying you are right. I am asking for everyones critiques/opinions on what works as we all know with Linux one incorrectly placed rm * can ruin alot of good data, so the end result has to be critiqued until it is correct and tried real time.

All for the greater good and all that stuff etc etc
--
========================================================================
Hylton Conacher - Linux user # 229959 at http://counter.li.org
Currently using SuSE 9.2 Professional with KDE
========================================================================


< Previous Next >