summaryrefslogtreecommitdiff
path: root/docs/yodldocs/smbtar.1.yo
blob: d35cea69397db27221d32fe4f2ab6ebb9aafe8c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
mailto(samba-bugs@samba.anu.edu.au) 

manpage(smbtar htmlcommand((1)))(1)(23 Oct 1998)(Samba)(SAMBA)

label(NAME)
manpagename(smbtar)(shell script for backing up SMB/CIFS shares directly to UNIX tape drives)

label(SYNOPSIS)
manpagesynopsis()

bf(smbtar) link(-s server)(minuss) [link(-p password)(minusp)] [link(-x service)(minusx)] [link(-X)(minusX)] [link(-d directory)(minusd)] [link(-u user)(minusu)] [link(-t tape)(minust)] [link(-b blocksize)(minusb)] [link(-N filename)(minusN)] [link(-i)(minusi)] [link(-r)(minusr)] [link(-l log level)(minusl)] [link(-v)(minusv)] filenames

label(DESCRIPTION)
manpagedescription()

This program is part of the bf(Samba) suite.

bf(smbtar) is a very small shell script on top of
url(bf(smbclient))(smbclient.1.html) which dumps SMB shares directly
to tape.

label(OPTIONS)
manpageoptions()

startdit()

label(minuss)
dit(bf(-s server)) The SMB/CIFS server that the share resides upon.

label(minusx)
dit(bf(-x service)) The share name on the server to connect
to. The default is tt(backup).

label(minusX)
dit(bf(-X)) Exclude mode. Exclude filenames... from tar create or
restore.

label(minusd)
dit(bf(-d directory)) Change to initial em(directory) before restoring
/ backing up files.

label(minusv)
dit(bf(-v)) Verbose mode.

label(minusp)
dit(bf(-p password)) The password to use to access a share. Default:
none

label(minusu)
dit(bf(-u user)) The user id to connect as. Default: UNIX login name.

label(minust)
dit(bf(-t tape)) Tape device. May be regular file or tape
device. Default: em(TAPE) environmental variable; if not set, a file
called tt(tar.out).

label(minusb)
dit(bf(-b blocksize)) Blocking factor. Defaults to 20. See bf(tar (1))
for a fuller explanation.

label(minusN)
dit(bf(-N filename)) Backup only files newer than filename. Could be
used (for example) on a log file to implement incremental backups.

label(minusi)
dit(bf(-i)) Incremental mode; tar files are only backed up if they
have the archive bit set. The archive bit is reset after each file is
read.

label(minusr)
dit(bf(-r)) Restore. Files are restored to the share from the tar
file.

label(minusl)
dit(bf(-l log level)) Log (debug) level. Corresponds to the
url(bf(-d))(smbclient.1.html#minusd) flag of url(bf(smbclient
(1)))(smbclient.1.html).

enddit()

label(ENVIRONMENTVARIABLES)
manpagesection(ENVIRONMENT VARIABLES)

The TAPE variable specifies the default tape device to write to. May
be overridden with the link(bf(-t))(minust) option.

label(BUGS)
manpagesection(BUGS)

The bf(smbtar) script has different options from ordinary tar and tar
called from url(bf(smbclient))(smbclient.1.html).

label(CAVEATS)
manpagesection(CAVEATS)

Sites that are more careful about security may not like the way the
script handles PC passwords. Backup and restore work on entire shares,
should work on file lists. bf(smbtar) works best with GNU tar and may
not work well with other versions.

label(VERSION)
manpagesection(VERSION)

This man page is correct for version 2.0 of the Samba suite.

label(SEEALSO)
manpageseealso()

url(bf(smbclient (1)))(smbclient.1.html), url(bf(smb.conf
(5)))(smb.conf.5.html)

label(DIAGNOSTICS)
manpagesection(DIAGNOSTICS)

See the url(bf(DIAGNOSTICS))(smbclient.1.html#DIAGNOSTICS) section for
the url(bf(smbclient))(smbclient.1.html) command.

label(AUTHOR)
manpageauthor()

The original Samba software and related utilities were created by
Andrew Tridgell email(samba-bugs@samba.anu.edu.au). Samba is now developed
by the Samba Team as an Open Source project similar to the way the
Linux kernel is developed.

Ricky Poulten email(poultenr@logica.co.uk) wrote the tar extension and
this man page. The bf(smbtar) script was heavily rewritten and
improved by Martin Kraemer email(Martin.Kraemer@mch.sni.de). Many
thanks to everyone who suggested extensions, improvements, bug fixes,
etc. The man page sources were converted to YODL format (another
excellent piece of Open Source software available at
url(bf(ftp://ftp.icce.rug.nl/pub/unix/))(ftp://ftp.icce.rug.nl/pub/unix/))
and updated for the Samba2.0 release by Jeremy Allison,
email(samba-bugs@samba.anu.edu.au).
 
See url(bf(samba (7)))(samba.7.html) to find out how to get a full
list of contributors and details on how to submit bug reports,
comments etc.