P. 1
Samba

Samba

|Views: 167|Likes:
Publicado porNurul Istiqomah

More info:

Published by: Nurul Istiqomah on Dec 14, 2010
Direitos Autorais:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/21/2014

pdf

text

original

smbtaris anotherhandy utility that comes with Samba. smbtaris actually a shell script
designed to use GNU tar to create tararchives. Although this tool is very handy for back-
ing up shares,it does suffer from the same limitation as smbmount—that is,you’ll lose any
fine-grained security information if you backup an NT share. This makes smbtarhandy if
you may need a single file restore or if you do not use NTFS on your NT server. If you do
use NTFS,however,you would have to restore all file permissions after a full restore—a
time-consuming process. Remember this when you consider smbtarfor a job and use it
accordingly. Listing 21.2 shows some sample output from an smbtarsession.

LISTING 21.2Sample Output from smbtar

bash-2.03# smbtar -v -s enteesrv -x c$ -u Administrator -p ‘s3cr3t’ -t
foo.tar
server is enteesrv
share is c$\\
tar args is
tape is foo.tar
blocksize is
Added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
Got a positive name query response from 127.0.0.1 ( 192.168.1.3 )
Domain=[WEEBLE] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
4 ( 2.0 kb/s) \AN_PREFS
0 ( 0.0 kb/s) \AUTOEXEC.BAT
649 ( 30.2 kb/s) \boot.ini
0 ( 0.0 kb/s) \CONFIG.SYS
324 ( 158.2 kb/s) \DP_PREFS
0 ( 0.0 kb/s) \IO.SYS
0 ( 0.0 kb/s) \MSDOS.SYS
directory \My Music\
26816 ( 1309.4 kb/s) \NTDETECT.COM
156496 ( 2010.9 kb/s) \ntldr

More information on smbtarcan be found in the smbtarman page.

Samba Backup Strategies

CHAPTER21

601

21

S

A
M
B
A

B

A
C
K
U
P

S

T
R
A
T
E
G
I
E
S

Tip

smbmount-mounted shares have been known to become inactive after a period
of several hours of inactivity. For this reason, it’s recommended that you mount
the shares when needed and unmount them when not in use. Alternatively,
simply create a cronjob to test to make sure that the share is active, and if not,
have the script first smbumountit and then smbmountit again. The script can eas-
ily test to see whether the share is properly mounted by testing for the exis-
tence of a well-known file or directory inside the mount point.

24 8628 CH21 3/17/00 2:12 PM Page 601

You're Reading a Free Preview

Descarregar
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->