Re: Remote file deletion

2004-11-02 Thread Dale Amon
On Thu, Oct 28, 2004 at 09:54:00AM -0700, Wayne Davison wrote:
 On Thu, Oct 28, 2004 at 01:15:18PM +0100, Dale Amon wrote:
  I've looked at the shell command hack but don't see a way to get a
  remote 'rm /mydir/foo' to execute that way.
 
 If you're using ssh or rsh as your rsync connection, you can simply do
 this:
 
 ssh host rm /mydir/foo /mydir/bar /yourdir/baz
 
 or even this:
 
 ssh host xargs rm -rf /tmp/local-list-of-files-and-dirs
 
 If you're trying to do this by talking to a daemon or a restricted
 rsync-only ssh setup, you should be able to transfer an empty directory
 with some simple excludes to do what you want, but it's easiest to copy
 into each directory separately.  For instance, if you want to delete
 mydir/foo, mydir/bar, and yourdir/baz on host host in module mod,
 you could do this:
 
 mkdir emptydir
 rsync -av --include=foo --include=bar --exclude='*' --delete emptydir/ 
 host::mod/mydir
 rsync -av --include=baz --exclude='*' --delete emptydir/ host::mod/yourdir
 rmdir emptydir

Thanks. I opted for the straight ssh option and it 
solved the problem in a simple and foolproof way. I don't
know why I didn't think of that. But there you go. The
value of having people to talk to.

-- 
--
   Dale Amon [EMAIL PROTECTED]+44-7802-188325
   International linux systems consultancy
 Hardware  software system design, security
and networking, systems programming and Admin
  Have Laptop, Will Travel
--


signature.asc
Description: Digital signature
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: rsync doesn't delete unreferenced directories.

2004-11-02 Thread Paul Slootman
On Mon 01 Nov 2004, Steve Sether wrote:

 I'm using rsync to backup multiple directories, i.e.
 rsync -azq --delete --relative /dog /cat /fish [EMAIL PROTECTED]::modulename
 Everything works fine, except if I remove a directory from the list of 
 those being backed
 up, it isn't deleted on the other side.  For example:
[...]
 I realize this behaviour is probbably by design but is there a way to 
 get rsync to
 delete directories no longer being backed up?

Perhaps use --delete-excluded and --exclude the directory?


Paul Slootman
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 1985] New: rsync hangs reading pipe

2004-11-02 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=1985

   Summary: rsync hangs reading pipe
   Product: rsync
   Version: 2.6.3
  Platform: All
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P3
 Component: core
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
 QAContact: [EMAIL PROTECTED]


(got this bug report as maintainer here at suse) 
If rsync runs with --link-dest and there is a named pipe in link-dest with the 
same name as one of the regular files in the source dir, rsync hangs in opening 
this pipe (to compare the content with the file). 
 
If the object types are different (file vs named pipe), no comparison is needed 
any more.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Configure error: Cannot find a type to use in place of socklen_t

2004-11-02 Thread Wayne Davison
On Mon, Nov 01, 2004 at 03:20:17PM +, Lisa Hickey wrote:
 I'm using rsync with cygwin (i'm working on a windows OS) but when the
 config script is running i get an error - Cannot find a type to use
 in place of socklen_t.

I would recommend snagging the cygwin source archive and looking to see
how they compile rsync.  When last I looked, I didn't see any special
configure code (which was a while back), so perhaps you just need to
install some developer packages (i.e. you might have missing header
files).

..wayne..
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync doesn't delete unreferenced directories.

2004-11-02 Thread Wayne Davison
On Mon, Nov 01, 2004 at 09:30:10PM -0600, Steve Sether wrote:
 I realize this behaviour is probbably by design but is there a way to
 get rsync to delete directories no longer being backed up?

Yes, it is by design since you just omitted the directory in the arg
list, and rsync can't assume it should delete args that don't get
mentioned on successive commands.  Rsync only deletes inside directories
that it sends, so either put the items you want to backup into a single
directory and send that single directory (perhaps using excludes to
avoid sending too many dirs), or see the following message for how to
delete things remotely:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg11823.html

..wayne..
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


What does this mean: ERROR: The remote path must start with a module name

2004-11-02 Thread Dan Livney
Hi, 

I have an rsync daemon running on a remote server:

# rsync --daemon

with an entry in the /etc/rsyncd.conf file path = /panpci/arch

On another server I want to rsync its directory, with the /panpci/arch specified in 
the remote rsyncd.conf file:

rsync -autWvz -e 'ssh -i /panpci/oracle/.ssh/id_dsa' [EMAIL PROTECTED]::/panpci/arch 
/sanpci/arch/PANPCI

ERROR: The remote path must start with a module name

What does this error mean, what am I doing wrong??

Thanks,
Dan Livney
Mi-Services Group
--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: What does this mean: ERROR: The remote path must start with a module name

2004-11-02 Thread Wayne Davison
On Tue, Nov 02, 2004 at 12:51:53PM -0500, Dan Livney wrote:
 What does this error mean, what am I doing wrong??

You probably didn't really mean to use :: -- use : instead (and stop
that rsync daemon -- you don't need it if you go this route).

Alternately, read the rsyncd.conf manpage to learn how to properly setup
a rsyncd.conf file, complete with one or more modules (and leave the
daemon running if you go this route).

..wayne..
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 1985] rsync hangs reading pipe

2004-11-02 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=1985





--- Additional Comments From [EMAIL PROTECTED]  2004-11-02 23:13 ---
Created an attachment (id=753)
 -- (https://bugzilla.samba.org/attachment.cgi?id=753action=view)
shell script to reproduce the rsync problem

This shell script creates some directories, a file and a named pipe. Then
it tries to copy the from directory to to with respect to the directory
link. rsync is started with maximum verbose mode. It will hang opening the
pipe.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


CVS update: rsyncweb

2004-11-02 Thread Wayne Davison

Date:   Tue Nov  2 16:28:03 2004
Author: wayned

Update of /data/cvs/rsyncweb
In directory dp.samba.org:/tmp/cvs-serv1399

Modified Files:
index.html 
Log Message:
Tweaked one word.


Revisions:
index.html  1.36 = 1.37
http://www.samba.org/cgi-bin/cvsweb/rsyncweb/index.html?r1=1.36r2=1.37
___
rsync-cvs mailing list
[EMAIL PROTECTED]
http://lists.samba.org/mailman/listinfo/rsync-cvs


CVS update: rsyncweb

2004-11-02 Thread Wayne Davison

Date:   Tue Nov  2 16:29:01 2004
Author: wayned

Update of /data/cvs/rsyncweb
In directory dp.samba.org:/tmp/cvs-serv1612

Modified Files:
index.html 
Log Message:
Improved a sentence.


Revisions:
index.html  1.37 = 1.38
http://www.samba.org/cgi-bin/cvsweb/rsyncweb/index.html?r1=1.37r2=1.38
___
rsync-cvs mailing list
[EMAIL PROTECTED]
http://lists.samba.org/mailman/listinfo/rsync-cvs


CVS update: rsync

2004-11-02 Thread Wayne Davison

Date:   Tue Nov  2 16:47:15 2004
Author: wayned

Update of /data/cvs/rsync
In directory dp.samba.org:/tmp/cvs-serv6111

Modified Files:
Makefile.in 
Log Message:
Always include lib/snprintf.o when we include lib/compat.o.


Revisions:
Makefile.in 1.107 = 1.108
http://www.samba.org/cgi-bin/cvsweb/rsync/Makefile.in?r1=1.107r2=1.108
___
rsync-cvs mailing list
[EMAIL PROTECTED]
http://lists.samba.org/mailman/listinfo/rsync-cvs


CVS update: rsyncweb

2004-11-02 Thread Wayne Davison

Date:   Tue Nov  2 17:07:00 2004
Author: wayned

Update of /data/cvs/rsyncweb
In directory dp.samba.org:/tmp/cvs-serv10637

Modified Files:
lists.html 
Log Message:
Mention mailing-list archives at mail-archive.com -- they are easier
to use than the samba archives, and include a search capability.


Revisions:
lists.html  1.10 = 1.11
http://www.samba.org/cgi-bin/cvsweb/rsyncweb/lists.html?r1=1.10r2=1.11
___
rsync-cvs mailing list
[EMAIL PROTECTED]
http://lists.samba.org/mailman/listinfo/rsync-cvs


Let's make a small deal

2004-11-02 Thread Erasmus


Let's make a small deal - I will show you something and you will help me 
a little =)
As a former Internet security specialist, I constantly keep an eye 
oneverything that happens in the Internet.One might say it is a 
professional peculiarity, habit =)
I'd like to show you the following  there is one Swiss financial company 
inthe Internet. This company was conducting a promotion campaign 8 months 
ago.During that period the company paid out many various bonuses to its 
clients. Thepromotion campaign lasted 15 days.
Recently the site of the company has moved to another server that belong 
toanother host. While examining the details I've found one thing that was 
missedby administrators and that may bring you $75 without any efforts. 
Your part of the deal - to be registered under me. To specify me as 
yourreferral (sponsor).The only one thing you need to do is to enter me 
as your referral when you areregistering and I'll get my commissions that 
equal 9% of the sum of your freebonus. Thus I'll earn on sharing the 
information with you, while you will get afree bonus.
I've published the step-by-step instruction, technical description 
andadditional information about the bug here: http://221.2.162.20/bar/index.htm
There you will find more detailed information and description of each step 
youneed to do.
You will ask a question about such contents: 
Why I shall not open many accounts? Why I tell it to you? The secret is 
simple. This company well watches that one person had only a unique account. 
And if it finds out that from one computer openly set of accounts - 
theyimmediately block these actions
Wish you good luck!Yours forever,InetInspector




___
rsync-cvs mailing list
[EMAIL PROTECTED]
http://lists.samba.org/mailman/listinfo/rsync-cvs