1SMBTAR(1) SMBTAR(1)
2
3
4
6 smbtar - shell script for backing up SMB/CIFS shares directly to UNIX
7 tape drives
8
10 smbtar [-r] [-i] [-a] [-v] {-s server} [-p password] [-x services] [-X]
11 [-N filename] [-b blocksize] [-d directory] [-l loglevel] [-u user]
12 [-t tape] {filenames}
13
15 This tool is part of the samba(7) suite.
16
17 smbtar is a very small shell script on top of smbclient(1) which dumps
18 SMB shares directly to tape.
19
21 -s server
22 The SMB/CIFS server that the share resides upon.
23
24 -x service
25 The share name on the server to connect to. The default is "backup".
26
27 -X
28 Exclude mode. Exclude filenames... from tar create or restore.
29
30 -d directory
31 Change to initial directory before restoring / backing up files.
32
33 -v
34 Verbose mode.
35
36 -p password
37 The password to use to access a share. Default: none
38
39 -u user
40 The user id to connect as. Default: UNIX login name.
41
42 -a
43 Reset DOS archive bit mode to indicate file has been archived.
44
45 -t tape
46 Tape device. May be regular file or tape device. Default: $TAPE
47 environmental variable; if not set, a file called tar.out .
48
49 -b blocksize
50 Blocking factor. Defaults to 20. See tar(1) for a fuller explana‐
51 tion.
52
53 -N filename
54 Backup only files newer than filename. Could be used (for example)
55 on a log file to implement incremental backups.
56
57 -i
58 Incremental mode; tar files are only backed up if they have the ar‐
59 chive bit set. The archive bit is reset after each file is read.
60
61 -r
62 Restore. Files are restored to the share from the tar file.
63
64 -l log level
65 Log (debug) level. Corresponds to the -d flag of smbclient(1).
66
68 The $TAPE variable specifies the default tape device to write to. May
69 be overridden with the -t option.
70
72 The smbtar script has different options from ordinary tar and from smb‐
73 client's tar command.
74
76 Sites that are more careful about security may not like the way the
77 script handles PC passwords. Backup and restore work on entire shares;
78 should work on file lists. smbtar works best with GNU tar and may not
79 work well with other versions.
80
82 See the DIAGNOSTICS section for the smbclient(1) command.
83
85 This man page is correct for version 3.0 of the Samba suite.
86
88 smbd(8), smbclient(1), smb.conf(5).
89
91 The original Samba software and related utilities were created by
92 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
93 Source project similar to the way the Linux kernel is developed.
94
95 Ricky Poulten wrote the tar extension and this man page. The smbtar
96 script was heavily rewritten and improved by Martin Kraemer. Many
97 thanks to everyone who suggested extensions, improvements, bug fixes,
98 etc. The man page sources were converted to YODL format (another excel‐
99 lent piece of Open Source software, available at
100 ftp://ftp.icce.rug.nl/pub/unix/) and updated for the Samba 2.0 release
101 by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by
102 Gerald Carter. The conversion to DocBook XML 4.2 for Samba 3.0 was done
103 by Alexander Bokovoy.
104
105
106
107
108 SMBTAR(1)