Re: empty quotes for rsync parameter

2009-10-11 Thread Wolfram Volpi
Thanks for the links Matt. Now I understand. wolfv -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: Filter file: selected directories only

2009-10-11 Thread Matt McCutchen
On Fri, 2009-10-09 at 20:54 +0400, rs...@xbit.ru wrote: > Well, I must say that this must by bone by rsync. > That's because I'm creating small automation system, > part of it is rsync-based. > Yes, I can write "rm -r dirB/dir2", but this will break consitency > of the whole system and removes some

Re: Problem with symlinks

2009-10-11 Thread Thomas Ebert
Hi Matt, thanks for the swift reply. rsync --version on the DS says: rsync version 3.0.4 protocol version 30 Copyright (C) 1996-2008 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints

Re: Problem with symlinks

2009-10-11 Thread Matt McCutchen
On Sun, 2009-10-11 at 13:07 +0200, Thomas Ebert wrote: > rsync has problems with symlinks. First some background information: > I regularly back up my / and /home from my desktop PC and my netbook to > my Synology DiskStation (500GB) using rsync 3.0.6 with this script: > http://pastebin.com/m43d4

Problem with symlinks

2009-10-11 Thread Thomas Ebert
Hi, currently I'm trying to extend my existing backup concept but I have issues due to symlinks. rsync has problems with symlinks. First some background information: I regularly back up my / and /home from my desktop PC and my netbook to my Synology DiskStation (500GB) using rsync 3.0.6 with

Re: gnu --target-dir, how to fake with rsync?

2009-10-11 Thread Matt McCutchen
On Wed, 2009-10-07 at 04:40 -0700, Martin Scharrer wrote: > I agree with both above points. However, I would also vote for adding such > an option to rsync. > This should not be to difficult and would come in handy. I'm not convinced of the need for a --target-dir option. Do you have an example i

Re: empty quotes for rsync parameter

2009-10-11 Thread Matt McCutchen
On Sun, 2009-10-11 at 00:37 -0700, Wolfram Volpi wrote: > Why does inserting an empty quote ("") into a rsync command cause the current > directory to be backed up? > > Not sure if this is a UNIX-syntax question or rsync-syntax question. > > Code: > #!/bin/sh > > echo "\nspace between quotes ha

empty quotes for rsync parameter

2009-10-11 Thread Wolfram Volpi
Why does inserting an empty quote ("") into a rsync command cause the current directory to be backed up? Not sure if this is a UNIX-syntax question or rsync-syntax question. Code: #!/bin/sh echo "\nspace between quotes has no effect; only music is backed up:" rsync -ilrtn " " /home/wolf/music /