[Bug 8188] Mechanism for taking an rsync server down for maintenance
https://bugzilla.samba.org/show_bug.cgi?id=8188 --- Comment #1 from Wayne Davison 2011-05-31 05:15:51 UTC --- You could just setup something to echo a one-line message on the socket and disconnect. If you're using xinetd, tweak the program to be anything that outputs a message to stdout. To replace an rsync daemon, you may want to code up a C program or use a simple perl script, like this (and run it instead of the daemon): #!/usr/bin/perl use strict; use warnings; use Socket; my $PORT = 873; local *S; socket(S, PF_INET, SOCK_STREAM , getprotobyname('tcp')) or die "couldn't open socket: $!\n"; setsockopt(S, SOL_SOCKET, SO_REUSEADDR, 1); bind(S, sockaddr_in($PORT, INADDR_ANY)); listen(S, 25) or die "listen failed: $!\n"; while (1) { accept(CON, S); print CON "The rsync server is down for maintenance.\n"; close CON; } Any connecting rsync will then output this: rsync: server sent "The rsync server is down for maintenance." rather than greeting -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the QA contact for the bug. -- 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
[Bug 8188] New: Mechanism for taking an rsync server down for maintenance
https://bugzilla.samba.org/show_bug.cgi?id=8188 Summary: Mechanism for taking an rsync server down for maintenance Product: rsync Version: 3.0.8 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: core AssignedTo: way...@samba.org ReportedBy: andrew-samba-bugzi...@andrew.net.au QAContact: rsync...@samba.org Hi, I run a mirror, which provides content over rsync, amongst other protocols. I'm looking for a nicer way to take the rsync component down when I need to make the mirror unavailable for maintenance. Currently for Apache, I can put up a server that returns a 503 HTTP response, for FTP, I can use ProFTPd's ftpshut command, which puts a file in place that makes ProFTPd return 500 responses for new connections. To the best of my reading of the rsync source (start_daemon in clientserver.c), there doesn't seem to be any such functionality for rsync. I currently have to simply stop the rsync daemon, which doesn't convey a useful message to the user. I was thinking if for every new connection, the rsync daemon checked for the existence of a file in /etc (perhaps /etc/rsync.shutdown?) and if this was present, displayed the contents of the file to the remote user and closed the connection. >From my limited understanding of rsync, I presume this would require extending the protocol to allow for sending such a message back to the remote client. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the QA contact for the bug. -- 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
Line delimiters ignored in per-dir filter files
I'm "pulling" files from a remote server, and the line delimiters in per-dir filter files on the remote machine appear to be ignored. If I set a single line rule, it works fine. If I add additional rules, comments (prefaced with #), or blank lines, the filter file breaks - often with rsync complaining that it it could not parse the file. I have gone over and over the man page, the net, and my syntax, and I can't find anything. From my perspective, per-dir filters on the remote side of an OS X rsync transfer are broken. Local side: OS X 10.5.8, rsync 2.6.9 Remote side: OS X 10.6.7, rsync 2.6.9 Any thoughts? wbr -- 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
[Bug 8130] ACL / link-dest / fake-super do not work together
https://bugzilla.samba.org/show_bug.cgi?id=8130 --- Comment #7 from Ben 2011-05-30 19:32:38 UTC --- Wayne, Thank you very much, it works very well ! Thank you so much :-) Best regards, Ben -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the QA contact for the bug. -- 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
[Bug 8177] Problems with big sparsed files
https://bugzilla.samba.org/show_bug.cgi?id=8177 --- Comment #4 from joluinfa...@gmail.com 2011-05-30 19:12:21 UTC --- Hi, forum! Anyone out there? -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the QA contact for the bug. -- 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
[Bug 8090] full_fname out of memory error on missing file SunOS 5.8
https://bugzilla.samba.org/show_bug.cgi?id=8090 --- Comment #2 from Wayne Davison 2011-05-30 17:29:11 UTC --- full_fname() is calling asprintf(). Perhaps that is not supported on Solaris 5.8? You could try using the version supplied by lib/snprintf.c (e.g. manipulating the defines in config.h, and perhaps some function-name trickery). If asprintf() isn't the issue, I'd suggest either using a debugger to look at the string pointers that will be passed to asprintf(), or outputting them via debug fprintf(stderr, "...") calls. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the QA contact for the bug. -- 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
[Bug 8130] ACL / link-dest / fake-super do not work together
https://bugzilla.samba.org/show_bug.cgi?id=8130 --- Comment #6 from Wayne Davison 2011-05-30 15:58:57 UTC --- The patch in git applies fine to 3.0.8: http://gitweb.samba.org/?p=rsync.git -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the QA contact for the bug. -- 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
[Bug 8019] Various improvements to the fileflags patch
https://bugzilla.samba.org/show_bug.cgi?id=8019 Wayne Davison changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the QA contact for the bug. -- 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
[Bug 8183] rsync 3.0.8 can't modify read-only directories created on the same run
https://bugzilla.samba.org/show_bug.cgi?id=8183 Wayne Davison changed: What|Removed |Added Status|NEW |RESOLVED Version|3.0.8 |3.1.0 Resolution||FIXED --- Comment #1 from Wayne Davison 2011-05-30 15:51:37 UTC --- I've committed a fix for this to git. You can see it here: http://gitweb.samba.org/?p=rsync.git -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the QA contact for the bug. -- 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
Syncing a write protected folder
Hi, I've already asked in IRC, but i somehow can't belive this isn't possible. I have the folowing testcase (local, on an ext3 fs, no xattr): . ├── [dr-xr-xr-x] dir1 │ └── [-r--r--r--] text.txt └── [drwxr-xr-x] target and what i want after using 'rsync dir1 target' is: . ├── [dr-xr-xr-x] dir1 │ └── [-r--r--r--] text.txt └── [drwxr-xr-x] target └── [dr-xr-xr-x] dir1 └── [-r--r--r--] text.txt Now i did some tries: "rsync -rvt dir1 target" throw an error message: mkstemp "../target/dir1/.text.txt.AQGaMg" failed: Permission denied And that's what rsync did so far: . ├── [dr-xr-xr-x] dir1 │ └── [-r--r--r--] text.txt └── [drwxr-xr-x] target └── [dr-xr-xr-x] dir1 What i'm confused about is, after i did the exatcly same command again: . ├── [dr-xr-xr-x] dir1 │ └── [-r--r--r--] text.txt └── [drwxr-xr-x] target └── [dr-xr-xr-x] dir1 └── [-r--r--r--] text.txt And no error message was thrown. The only possible way to sync such a folder without any error message was to change the permissions by hand with '--chmod=u+w' and '--perms'. The disadvantage: All previous file permissions are 'lost' in the copy. So i tried after the first sync a second sync where only the file permissions shall be synced. Thus after the latter command i have: . ├── [dr-xr-xr-x] dir1 │ └── [-r--r--r--] text.txt └── [drwxr-xr-x] target └── [drwxr-xr-x] dir1 └── [-rw-r--r--] text.txt But after "rsync --perms -r -v dir1 target" i've got an error message again: mkstemp "../target/dir1/.text.txt.AP4sMs" failed: Permission denied And the filetree: . ├── [dr-xr-xr-x] dir1 │ └── [-r--r--r--] text.txt └── [drwxr-xr-x] target └── [dr-xr-xr-x] dir1 <-- correct └── [-rw-r--r--] text.txt <-- wrong Ok. So my final question is: Is it even possible what i want to do with rsync? The real situation is seriously far more complex (dir1 is in fact much bigger) and i realy want somehow to preserve the file permissions in the copy. Meanwhile thanks for any advise. -- 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
[Bug 7194] Getting --inplace and --sparse to work together (+patch)
https://bugzilla.samba.org/show_bug.cgi?id=7194 --- Comment #6 from Arne Jansen 2011-05-30 08:51:05 UTC --- Is it ready to be pulled into 3.1, or do you need anything else? -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the QA contact for the bug. -- 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