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.
-
-bblocksize 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.
-
-ddirectory Changes the working directory on the remote system to
directorybefore 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.
-
-llog_level Sets the logging level. This corresponds to the
-doption of smbclient and other Samba programs.-
-Nfilename Backs up only files newer than
filename. For incremental backups.-
-ppassword Specifies the password to use to access a share. An alternative to using the
username%passwordformat with the-uoption.-
-r Restores files to the share from the tar file.
-
-sserver Specifies the SMB server. See also the
-xoption.-
-tfilename Specifies the file or Unix device to use as the archiving medium. The default is
tar.outor the value of the TAPE environment variable, if it has been set.-
-uusername Specifies the user account to use when connecting to the share. You can specify the password ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access