1SMBTAR(1)                        User Commands                       SMBTAR(1)
2
3
4

NAME

6       smbtar - shell script for backing up SMB/CIFS shares directly to UNIX
7       tape drives
8

SYNOPSIS

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

DESCRIPTION

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

OPTIONS

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
26           "backup".
27
28       -X
29           Exclude mode. Exclude filenames... from tar create or restore.
30
31       -d directory
32           Change to initial directory before restoring / backing up files.
33
34       -v
35           Verbose mode.
36
37       -p password
38           The password to use to access a share. Default: none
39
40       -u user
41           The user id to connect as. Default: UNIX login name.
42
43       -a
44           Reset DOS archive bit mode to indicate file has been archived.
45
46       -t tape
47           Tape device. May be regular file or tape device. Default: $TAPE
48           environmental variable; if not set, a file called tar.out.
49
50       -b blocksize
51           Blocking factor. Defaults to 20. See tar(1) for a fuller
52           explanation.
53
54       -N filename
55           Backup only files newer than filename. Could be used (for example)
56           on a log file to implement incremental backups.
57
58       -i
59           Incremental mode; tar files are only backed up if they have the
60           archive bit set. The archive bit is reset after each file is read.
61
62       -r
63           Restore. Files are restored to the share from the tar file.
64
65       -l log level
66           Log (debug) level. Corresponds to the -d flag of smbclient(1).
67

ENVIRONMENT VARIABLES

69       The $TAPE variable specifies the default tape device to write to. May
70       be overridden with the -t option.
71

BUGS

73       The smbtar script has different options from ordinary tar and from
74       smbclient's tar command.
75

CAVEATS

77       Sites that are more careful about security may not like the way the
78       script handles PC passwords. Backup and restore work on entire shares;
79       should work on file lists. smbtar works best with GNU tar and may not
80       work well with other versions.
81

DIAGNOSTICS

83       See the DIAGNOSTICS section for the smbclient(1) command.
84

VERSION

86       This man page is correct for version 3 of the Samba suite.
87

SEE ALSO

89       smbd(8), smbclient(1), smb.conf(5).
90

AUTHOR

92       The original Samba software and related utilities were created by
93       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
94       Source project similar to the way the Linux kernel is developed.
95
96       Ricky Poulten wrote the tar extension and this man page. The smbtar
97       script was heavily rewritten and improved by Martin Kraemer. Many
98       thanks to everyone who suggested extensions, improvements, bug fixes,
99       etc. The man page sources were converted to YODL format (another
100       excellent piece of Open Source software, available at
101       ftp://ftp.icce.rug.nl/pub/unix/) and updated for the Samba 2.0 release
102       by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by
103       Gerald Carter. The conversion to DocBook XML 4.2 for Samba 3.0 was done
104       by Alexander Bokovoy.
105
106
107
108Samba 3.6                         04/11/2016                         SMBTAR(1)
Impressum