Re: rsync 2.5.5 port to Novell NetWare
We've been waiting for months for this, this is incredible good news. Thx a million for posting! Rgds, Bart Coninckx Network Administrator CNE, ASE * Sita ICT Services Lilsedijk 19 B-2340 Beerse Belgium e-mail: [EMAIL PROTECTED] Tel: + 32 (0) 14 62 82 22 Fax: + 32 (0) 14 62 41 47 * Rick Moen rick@linuxmafia.To: [EMAIL PROTECTED] com cc: Sent by: Subject: rsync 2.5.5 port to Novell NetWare rsync-admin@lists .samba.org 03/12/2002 10:17 Hullo, all. I diligently consulted the suggested reading on the way in: Welcome to the [EMAIL PROTECTED] mailing list! PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.tuxedo.org/~esr/faqs/smart-questions.html 'Twas a quick read, given that I'm the co-author. ;- I recently received an odd inquiry from someone I didn't know at all, posting to me in private mail from an IT concern in South Africa. He had heard mention of an rsync port to Novell NetWare, i.e., implemented as a NetWare Loadable Module (NLM), which can thus run as a network daemon on NetWare servers, and as such is bundled with a Novell-produced hardware appliance. The fellow wanted to know if Novell was obliged under the GNU GPL to provide him (1) binaries, (2) source code, or (3) both. I took the time to explain matters to him, and suggest that Novell would likely be delighted to send him at least the NLM binary, if he could find the correct person to ask. He did so, they complied, and moreover he lofted a copy over of the furnished files over to me. Index entry from my machine's public files collection, in http://linuxmafia.com/pub/netware/ (where they are _now_ available), should say it all: 117367 Dec 3 00:47 rsync-netware-nlm-2.5.5.tar.gz This is a pair of Novell Netware NLM compiled-binary executables for the rsync utility (the main daemon and a semaphore-based rsync-service stopping utility), with a sample configuration file, welcome-text file, and scripts to run the two NLMs. This is a port to NetWare of rsync v. 2.5.5, provided by Novell South Africa to a customer, who e-mailed them to me. He says they are included on Novell's Nterprise Branch Office CD #2. I believe all the code to be lawfully redistributable and subject to the GNU GPL. I have no idea where the matching source code can be found. I personally have no current use for those files, but figure anyone who should be told is probably on this mailing list. If Novell's interest in this matter comes as a surprise to people, please be aware that recent NetWare versions have included quite a bit of open-source software, including XFree86 on the local server console(!). Very likely, anyone interested in receiving copies of their patches can achieve success by _politely and patiently_ asking, bearing in mind that they will undoubtedly be very unaccustomed to such queries, and you may have to try several times to reach the correct person. Once again, I have no business relationship to any of the parties in this matter: The whole affair dropped in my lap out of the blue Johannesburg skies, and I'm posting here purely pro bono publico. I'll probably be obliged to answer I don't know to most of the obvious questions. -- Cheers, A good man has few enemies; a ruthless man has none. Rick Moen [EMAIL PROTECTED] -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read:
Re: Rsync service on Win2k?
Okay-- do the permissions for SYSTEM have to be explicit? I've just given full control to EVERYONE. I've also been trying cygrunsrv -I RSYNC -d Rsync daemon -p /usr/bin/rsync.exe -a --config=/etc/rsyncd.conf --daemon --no-detach My /etc/rsyncd.conf file: $ cat /etc/rsyncd.conf use chroot = false strict modes = false log file = /var/log/rsyncd.log [backup] path = /tmp/rsync comment = rsync temp dir There are no log entries in /var/log/rsyncd.log... mount -m yields: $ mount -m mount -f -u -b C:/cygwin/bin /usr/bin mount -f -u -b C:/cygwin/lib /usr/lib mount -f -u -b C:/cygwin / mount-b --change-cygdrive-prefix /cygdrive Thanks to everyone for the help and tips so far. Cheers, -John Max Bowsher wrote: John Morgan Salomon [EMAIL PROTECTED] wrote: I'm hoping someone could give me a quick tip or two on getting rsync working as a Win2k service. I'm not real proficient with Win2k, so be gentle. The posts I could find in the archive all seeem to have gotten past this basic problem! I've installed the latest Cygwin, as well as the Cygwin rsync package. cygrunsrv -I rsyncd -d Rsync daemon -p /usr/bin/rsync.exe -a --config=/etc/rsyncd.conf --daemon installs the service; rsyncd.exe --config=/etc/rsyncd.conf --daemon runs it from a bash shell, but I can't seem to start it either using cygrunsrv -S rsyncd, or from the Services manager. I've also tried with --no-detach and -e CYGWIN='binmode tty ntsec' on the cygrunsrv command line, as described at http://acd.ucar.edu/~fredrick/win2k/rsync/ Lastly, I tried getting it running via srvany.exe (from the Win2k resource kit) and srvinstw, with even less intelligible output. cygrunsrv is definitely the way to go, not srvany. --no-detach is *required*. --config=/etc/rsyncd.conf should be a no-op, as that is the default path to rsyncd.conf. Is there any output in /var/log/rsyncd.log ? Post your rsyncd.conf and the output of mount -m. Max. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Rsync --non-existent-dir-only feature :) ..
Does the --ignore-existing option do what you want? It will probably recurse into the existing directories, but ignore all regular files that already exist. - Dave Dykstra On Tue, Dec 03, 2002 at 01:01:03AM +0100, Robert Raszuk wrote: All, I can't find a way to achive something probably quite wired :). Let's say I have two unix folders (on different machines): /dst-top-1n/ | dir-a | files | dir-b | files | dir-c | files /src-top-2/ | dir-a | files | dir-b | files | dir-x | files Always src is top-2 dst is top-1. All I need to do is to be able to send dir-x files to top-1 without even touching dir-a dir-b simply because the overall tool does not have permissions to write access them. To make it more interesting there are 100s of those top-1 directories (each on different client machine), the rsync is fully automated, and the context of each of the top-1 dir differs. Sync is triggered by src. What I am really looking for is something like in the subject one liner knob which would compare dir-x directories on src/dst and perform no action under matching already dirs on both machines. Huge Thx - Rsync Rocks R. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Rsync --non-existent-dir-only feature :) ..
Does the --ignore-existing option do what you want? Sounds one huge step further for this particular application ! I admit that I missed it since man rsync on the web does not show this command ;). Since it recurses down to the files under dir-x and since it could find some files modified there or not existent it would be great if it could just keep going (no permissions to write there) instead of dumping a core and terminating. I tried --ignore-errors but this seems only applicable to the delete file knob. R. Dave Dykstra wrote: Does the --ignore-existing option do what you want? It will probably recurse into the existing directories, but ignore all regular files that already exist. - Dave Dykstra On Tue, Dec 03, 2002 at 01:01:03AM +0100, Robert Raszuk wrote: All, I can't find a way to achive something probably quite wired :). Let's say I have two unix folders (on different machines): /dst-top-1n/ | dir-a | files | dir-b | files | dir-c | files /src-top-2/ | dir-a | files | dir-b | files | dir-x | files Always src is top-2 dst is top-1. All I need to do is to be able to send dir-x files to top-1 without even touching dir-a dir-b simply because the overall tool does not have permissions to write access them. To make it more interesting there are 100s of those top-1 directories (each on different client machine), the rsync is fully automated, and the context of each of the top-1 dir differs. Sync is triggered by src. What I am really looking for is something like in the subject one liner knob which would compare dir-x directories on src/dst and perform no action under matching already dirs on both machines. Huge Thx - Rsync Rocks R. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Trailing Slash Inconsistencies
Dave, thanks for the response! I read my command over at least 10 times to make sure there wasn't a mistake and now I finally noticed one. The second command should read: rsync -va --stats --timeout=1800 --exclude-from=exclude.list --delete --port=1 -R [EMAIL PROTECTED]::backup/home/ /home/backup1/hostname/stage/ Notice the module name is backup. I'm not sure if this would make a difference with your explanation. However, in my scenario I need the '-R' option because the backup process is run by a script and is backing up about 20 different machines with multiple directories from each machine. The script pulls all relevant information from a database and dynamically constructs the command. The module backup is the root of the server and I need the path on the destination to be relative to root. The destination will always be /home/backup1/hostname/stage. Thanks, Mark On Tue, 2002-12-03 at 10:11, Dave Dykstra wrote: I didn't test this out myself, but I have a couple comments. One is to note the two scenarios are quite different internally to rsync because in the second case home is the name of a rsyncd.conf module and not just a path. Secondly, the -R option is not used very often and may behave in some unexpected ways. It's certainly not needed in this case because you can always control whether or not the destination path has an extra home at the end. Try the two without -R. - Dave Dykstra (who hasn't posted lately because I'm looking for a new job) On Wed, Nov 27, 2002 at 10:13:06AM -0500, Mark J de Jong wrote: Hello, I am noticing inconsistencies when using a trailing slash on the source directories in conjunction with the '--delete' option. In one instance when using a trailing slash files get deleted from subdirectories in the destination tree. In the other instance they don't. I am using rsync 2.5.5. The following are the scenarios: Scenario 1 -- *nix(src) --- *nix(dest) rsync -va --stats --timeout=1800 --exclude-from=exclude.list --delete -R -e ssh [EMAIL PROTECTED]:/home/ /home/backup1/hostname/stage/ In this instance files in destination /home/backup1/hostname/stage/DIR would get deleted. Scenario 2 -- windows(src) --ssh tunnel-- *nix(dest) The windows machine is running rsync in daemon mode. I create a ssh tunnel from the unix machine to the windows machine and port forward from a random port and then run the following command: rsync -va --stats --timeout=1800 --exclude-from=exclude.list --delete --port=1 -R [EMAIL PROTECTED]::/home/ /home/backup1/hostname/stage/ In essence it's the same as the last command except in this case files in the destination /home/backup1/hostname/stage/DIR do not get deleted. When I remove the the trailing slash from the source directory (/home) everything works fine. Is this by design or might this be a bug? Thanks, -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Error Code returned 139 while rsync
I get this return error code (139) from rsync. Any pointers would help. Thanks, Saikot. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Error Code returned 139 while rsync
On Tue, Dec 03, 2002 at 12:32:20PM -0800, Saikot Chakravorty wrote: I get this return error code (139) from rsync. Any pointers would help. Thanks, Saikot. That is like telling us your foot hurts. -- J.W. SchultzPegasystems Technologies email address: [EMAIL PROTECTED] Remember Cernan and Schmitt -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Rsync, Perl and samba filesystem (smbfs)
My name is Chris, Hi! I've got rsync being called from a perl script that is called by cron (or for that matter, by hand) and when I 'rsync' a locally mounted samba filesystem (eg. to /mnt/smbfs), it successfully syncs the smbfs to the destination directory, but without reason hangs... and take all my cpu power... When i look at all the processes running, the rsync pid is defuct... and it's actually saying that the parent perl script that made the call is gobbling up all my cpu resources This ONLY happens (so far anyways) with the samba mounts... Any suggestions?? Thanks a bundle! -Chris -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Rsync, Perl and samba filesystem (smbfs)
Sorry, I should have noted my system to begin with. I'm running Red Hat 7.2, Perl 5.8.0 and rsync 2.4.6 The smbfs is on a windows NT (2000) server. -Chris On Tuesday 03 December 2002 04:41 pm, you wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have had the same issue. Are you running FreeBSD?Strange. I've had a box up for 200+ days here at work (freebsd) rsyncing every 15 mins and then out ofthe blue it's hanging on perl script and eating all process + swap... Matt On Tuesday 03 December 2002 04:33 pm, Dr. Poo wrote: My name is Chris, Hi! I've got rsync being called from a perl script that is called by cron (or for that matter, by hand) and when I 'rsync' a locally mounted samba filesystem (eg. to /mnt/smbfs), it successfully syncs the smbfs to the destination directory, but without reason hangs... and take all my cpu power... When i look at all the processes running, the rsync pid is defuct... and it's actually saying that the parent perl script that made the call is gobbling up all my cpu resources This ONLY happens (so far anyways) with the samba mounts... Any suggestions?? Thanks a bundle! -Chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE97TMRXG7+MmNwciURAgoVAKCblQWXHgfOWNXhqZO/uzUZqAEOjgCfYv9Q z8BjMdRpQW3mHVOKrHCNjTY= =mhsU -END PGP SIGNATURE- -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Rsync, Perl and samba filesystem (smbfs)
As well though, i might add that perl is hogging 98-99% of my cpu... and all the while rsync is defuct -Chris -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Rsync, Perl and samba filesystem (smbfs)
On Tue, Dec 03, 2002 at 04:33:38PM -0600, Dr. Poo wrote: My name is Chris, Hi! I've got rsync being called from a perl script that is called by cron (or for that matter, by hand) and when I 'rsync' a locally mounted samba filesystem (eg. to /mnt/smbfs), it successfully syncs the smbfs to the destination directory, but without reason hangs... and take all my cpu power... When i look at all the processes running, the rsync pid is defuct... and it's actually saying that the parent perl script that made the call is gobbling up all my cpu resources This ONLY happens (so far anyways) with the samba mounts... Any suggestions?? Thanks a bundle! -Chris The fact that the rsync process is defunct tells me that it isn't rsync. Defunct (also known as the zombie state) means that the process has exited but the parent (your perl script) has not reaped the status with wait(). It sounds like your perl script is reading from the rsync output and failing to check for EOF. If you described or better sent your perl script someone might be able to help. -- J.W. SchultzPegasystems Technologies email address: [EMAIL PROTECTED] Remember Cernan and Schmitt -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Rsync service on Win2k?
cygrunsrv -I RSYNC -d Rsync daemon -p /usr/bin/rsync.exe -a --config=/etc/rsyncd.conf --daemon --no-detach It is almost the same command line I suggest in the README and... it *used* to work. Doesn't work even in my box right now. 0_o BTW: that's the default for rsyncd.conf Right now it's too far in the night to check it, I'll check it ASAP ^_^ -- Lapo 'Raist' Luchini [EMAIL PROTECTED] (PGP X.509 keys available) http://www.lapo.it (ICQ UIN: 529796) -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html