Name
smbtar
Synopsis
The smbtar program is a shell-script wrapper around smbclient for doing tar-format archiving operations. It is functionally very similar to the Unix tar program.
Command synopsis
smbtar [options]
Options
-
-a
Resets (clears) the archive attribute on files after they are backed up. The default is to leave the archive attribute unchanged.
-
-b
blocksize
Sets block size, in units of 512 bytes, for reading or writing the archive file. Defaults to 20, which results in a block size of 10240 bytes.
-
-d
directory
Changes the working directory on the remote system to
directory
before starting the restore or backup operation.-
-i
Specifies incremental mode; files are backed up only if they have the DOS archive attribute set. The archive attribute is reset (cleared) after each file is read.
-
-l
log_level
Sets the logging level. This corresponds to the
-d
option of smbclient and other Samba programs.-
-N
filename
Backs up only files newer than
filename
. For incremental backups.-
-p
password
Specifies the password to use to access a share. An alternative to using the
username
%
password
format with the-u
option.-
-r
Restores files to the share from the tar file.
-
-s
server
Specifies the SMB server. See also the
-x
option.-
-t
filename
Specifies the file or Unix device to use as the archiving medium. The default is
tar.out
or the value of the TAPE environment variable, if it has been set.-
-u
username
Specifies the user account to use when connecting to the share. You can specify the password ...
Get Using Samba, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.