version 1 showing authors affecting page license.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
SMBTAR |
|
|
2 |
!!!SMBTAR |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
ENVIRONMENT VARIABLES |
|
|
8 |
BUGS |
|
|
9 |
CAVEATS |
|
|
10 |
DIAGNOSTICS |
|
|
11 |
VERSION |
|
|
12 |
SEE ALSO |
|
|
13 |
AUTHOR |
|
|
14 |
---- |
|
|
15 |
!!NAME |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
smbtar - shell script for backing up SMB/CIFS shares directly to UNIX tape drives |
|
|
19 |
!!SYNOPSIS |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
__smbtar -s server__ [[ __-p password__ ] [[ __-x |
|
|
23 |
services__ ] [[ __-X__ ] [[ __-d directory__ ] [[ __-u |
|
|
24 |
user__ ] [[ __-t tape__ ] [[ __-t tape__ ] [[ __-b |
|
|
25 |
blocksize__ ] [[ __-N filename__ ] [[ __-i__ ] [[ |
|
|
26 |
__-r__ ] [[ __-l loglevel__ ] [[ __-v__ ] |
|
|
27 |
__filenames__ |
|
|
28 |
!!DESCRIPTION |
|
|
29 |
|
|
|
30 |
|
|
|
31 |
This tool is part of the Sambasuite. |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
__smbtar__ is a very small shell script on top of |
|
|
35 |
__smbclient(1)__ which dumps SMB shares directly to |
|
|
36 |
tape. |
|
|
37 |
!!OPTIONS |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
__-s server__ |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
The SMB/CIFS server that the share resides |
|
|
44 |
upon. |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
__-x service__ |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
The share name on the server to connect to. The default is |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
__-X__ |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
Exclude mode. Exclude filenames... from tar create or |
|
|
57 |
restore. |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
__-d directory__ |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
Change to initial ''directory'' before restoring / |
|
|
64 |
backing up files. |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
__-v__ |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
Verbose mode. |
|
|
71 |
|
|
|
72 |
|
|
|
73 |
__-p password__ |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
The password to use to access a share. Default: |
|
|
77 |
none |
|
|
78 |
|
|
|
79 |
|
|
|
80 |
__-u user__ |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
The user id to connect as. Default: UNIX login |
|
|
84 |
name. |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
__-t tape__ |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
Tape device. May be regular file or tape device. Default: |
|
|
91 |
''$TAPE'' environmental variable; if not set, a file |
|
|
92 |
called ''tar.out'' . |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
__-b blocksize__ |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
Blocking factor. Defaults to 20. See __tar(1)__ for a |
|
|
99 |
fuller explanation. |
|
|
100 |
|
|
|
101 |
|
|
|
102 |
__-N filename__ |
|
|
103 |
|
|
|
104 |
|
|
|
105 |
Backup only files newer than filename. Could be used (for |
|
|
106 |
example) on a log file to implement incremental |
|
|
107 |
backups. |
|
|
108 |
|
|
|
109 |
|
|
|
110 |
__-i__ |
|
|
111 |
|
|
|
112 |
|
|
|
113 |
Incremental mode; tar files are only backed up if they have |
|
|
114 |
the archive bit set. The archive bit is reset after each |
|
|
115 |
file is read. |
|
|
116 |
|
|
|
117 |
|
|
|
118 |
__-r__ |
|
|
119 |
|
|
|
120 |
|
|
|
121 |
Restore. Files are restored to the share from the tar |
|
|
122 |
file. |
|
|
123 |
|
|
|
124 |
|
|
|
125 |
__-l log level__ |
|
|
126 |
|
|
|
127 |
|
|
|
128 |
Log (debug) level. Corresponds to the ''-d'' flag of |
|
|
129 |
__smbclient(1)__ . |
|
|
130 |
!!ENVIRONMENT VARIABLES |
|
|
131 |
|
|
|
132 |
|
|
|
133 |
The ''$TAPE'' variable specifies the default tape device |
|
|
134 |
to write to. May be overridden with the -t |
|
|
135 |
option. |
|
|
136 |
!!BUGS |
|
|
137 |
|
|
|
138 |
|
|
|
139 |
The __smbtar__ script has different options from ordinary |
|
|
140 |
tar and tar called from smbclient. |
|
|
141 |
!!CAVEATS |
|
|
142 |
|
|
|
143 |
|
|
|
144 |
Sites that are more careful about security may not like the |
|
|
145 |
way the script handles PC passwords. Backup and restore work |
|
|
146 |
on entire shares, should work on file lists. smbtar works |
|
|
147 |
best with GNU tar and may not work well with other |
|
|
148 |
versions. |
|
|
149 |
!!DIAGNOSTICS |
|
|
150 |
|
|
|
151 |
|
|
|
152 |
See the __DIAGNOSTICS__ section for the |
|
|
153 |
__smbclient(1)__ command. |
|
|
154 |
!!VERSION |
|
|
155 |
|
|
|
156 |
|
|
|
157 |
This man page is correct for version 2.2 of the Samba |
|
|
158 |
suite. |
|
|
159 |
!!SEE ALSO |
|
|
160 |
|
|
|
161 |
|
|
|
162 |
__smbd(8)__, __smbclient(1)__, |
|
|
163 |
smb.conf(5), |
|
|
164 |
!!AUTHOR |
|
|
165 |
|
|
|
166 |
|
|
|
167 |
The original Samba software and related utilities were |
|
|
168 |
created by Andrew Tridgell. Samba is now developed by the |
|
|
169 |
Samba Team as an Open Source project similar to the way the |
|
|
170 |
Linux kernel is developed. |
|
|
171 |
|
|
|
172 |
|
|
|
173 |
Ricky Poulten |
|
|
174 |
smbtar__ |
|
|
175 |
script was heavily rewritten and improved by Martin Kraemer |
|
|
176 |
__ |
|
|
177 |
---- |