Adding --files-from functionality to smbtar...

Randy Zagar zagar at arlut.utexas.edu
Tue Aug 7 14:53:12 GMT 2007


I recently had the pleasure of archiving 3-TB of data stored on a 
Windows file server.  My high-capacity tape drives, however, were on a 
Linux server.  I didn't want to create an archive spanning multiple 
tapes, so I created lists of files that would on an LTO-3 tape.  I then 
planned on using smbtar to write these tapes...

Unfortunately, the smbtar command included in RHEL-5 (v3.0.23c) doesn't 
support the "F" tar option provided by smbclient...  :-(

This patch adds a -F option to the smbtar command.  When the -F option 
is used, the list of filenames written to the archive come from the file 
listed on the command-line.

Usage:

    ./smbtar -v -b 64 \
        -u $USERNAME -p $PASSWORD \
        -s $SERVER -x $SHARE \
        -t /dev/null \
        -F \
        list_of_filenames.txt

Thanks,

-Randy

-- 
Randy Zagar                               Sr. Unix Systems Administrator
E-mail: zagar at arlut.utexas.edu            Applied Research Laboratories
Phone: 512 835-3131                       Univ. of Texas at Austin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba-3.0.23c-files-from.patch
Type: text/x-patch
Size: 601 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070807/af986b6f/samba-3.0.23c-files-from.bin


More information about the samba-technical mailing list