|
From: Timothy D. <dem...@ar...> - 2005-01-28 01:31:16
|
For those continuing to use and have timeout problems with smbclient, I've created a patch and a Gentoo ebuild against samba-3.0.10 that increases the timeout value from 20000 to 20000000 milliseconds. This should be more than plenty of time for large files to be scanned by antivirus apps, etc. without causing smbclient to fail during the backup. The patch can be used independently of the Gentoo ebuild. I'm including the ebuild specifically because I use Gentoo on our BackupPC server. Email me if you need the patch, and/or the Gentoo ebuild. Craig: Contact me if you can host the patch and ebuild files on the BackupPC sourceforge page. Very basic instructions for the patch ------------------------------------- 1. You need to know how to compile samba from source. 2. You will need to download the source for samba 3.0.10, which is available here: <http://us2.samba.org/samba/ftp/samba-3.0.10.tar.gz> 3. Unpack the source somewhere and save the patch as 'cp samba-3.0.x-backuppc.patch' into the directory you unpacked samba-3.0.10.tar.gz. 4. Patch the source with the following command: patch -p0 < samba-3.0.x-backuppc.patch 5. Build and install samba. Gentoo Users: patched ebuild ---------------------------- If you are using Gentoo Linux, I've created a special samba ebuild for 3.0.10. 1. Create a local portage overlay for net-fs/samba. See the Gentoo docs if you don't know how to use this. - You may want to run an 'emerge sync' before the next step. 2. Copy over the files from portage same to our overlay: cp /usr/portage/net-fs/samba/files/* /usr/local/portage/net-fs/samba/files 3. Place the Samba overlay ebuild in your portage overlay directory (replace /usr/local with path to your overlay): cp ~/samba-3.0.10.ebuild /usr/local/portage/net-fs/samba 4. Save/Copy patch for BackupPC to the overlay samba files directory (replace /usr/local with path to your overlay) using the name 'samba-3.0.x-backuppc.patch': cp patch /usr/local/portage/net-fs/samba/files/samba-3.0.x-backuppc.patch 5. Create the digests for the files in the overlay: ebuild /usr/local/portage/net-fs/samba/samba-3.0.10.ebuild digest 6. Emerge samba and make sure it's using your overlay: emerge -Dav samba 7. Restart samba: /etc/init.d/samba restart The original message describing the workaround to this problem (for v3.0.0 of samba) can be found here: <http://sourceforge.net/mailarchive/message.php?msg_id=6305509> Tim -- Timothy Demarest ArrayComm, Inc. dem...@ar... 2480 North 1st Street, Suite 200 http://www.arraycomm.com San Jose, CA 95131 |