[Samba] samba backup and build

David Bear dwbear75 at gmail.com
Tue Dec 23 11:31:57 MST 2014

I am replacing my samba 4.1.9 with version 4.1.14. While tarring my
/usr/local/samba in preparation for this I got a number of message about
not being able to backup a socket.

So I switched and used pax to create the tar archive. I got the same
message in addition to the message about not backing up the socket I get
messages like this:

pax: ustar header field is too small for ./var/locks/sysvol/

So my question is --
1) can the socket file be safely erase

I did see the following

diff --git a/source4/scripting/bin/samba_backup
index 75ebec6..e34981e 100755
--- a/source4/scripting/bin/samba_backup
+++ b/source4/scripting/bin/samba_backup
@@ -48,6 +48,10 @@ cd $FROMWHERE
 for d in $DIRS;do
        relativedirname=`find . -type d -name "$d" -prune`
        n=`echo $d | sed 's/\//_/g'`
+       # remove all sockets
+       find $relativedirname -type s -exec rm {} \;

which I assume implies that it is safe to remove but I just wanted to verify.

And if anyone is using pax to create archive, a second question (yes,
I know I'm over quota and this isn't a pax support list) would be is
the message about header filed being too small important ? Should I be
worried about it?

David Bear
mobile: (602) 903-6476

More information about the samba mailing list