Mailinglist Archive: opensuse (2803 mails)

< Previous Next >
Re: [opensuse] Two simple rsync questions
  • From: Bob S <911@xxxxxxxxxxx>
  • Date: Tue, 8 Jul 2008 19:35:09 -0400
  • Message-id: <200807081935.09785.911@xxxxxxxxxxx>
On Tuesday 08 July 2008 05:04:12 am Dave Howorth wrote:
Bob S wrote:
1 When I backup a direcory (home for instance) rsync copies everything
UNDER that folder. How can I make it keep the title directory? "home"

Thanks for replying Sudhir, Sampsa, Dave

You will often get better answers if you provide more detailed
information. In this case, it would be useful to know the exact command
you are currently using, because without it we have to guess what your
problem is.

If you read the rsync man page carefully, you will see that there is a
difference between:

That is the keyword, carefully intently, and confusing.

rsync -a foo:src/bar/ /data/tmp

and

rsync -a foo:src/bar /data/tmp

that results in exactly the difference you want. Perhaps this is the
source of your problem?

Yes, I now see the difference. Thanks. I will try it later.

Bob S
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References