smbtar

   
smbtar

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 as well, in the format username % password . The username defaults to the user's Unix username.

-v

Operates in verbose mode, printing error messages and additional information that can be used in debugging and monitoring. Backup and restore operations will list each file as it is processed .

-x share

States the name of the share on the server to which to connect. The default is backup . See also the -s option.

-X file_list

Tells smbtar to exclude the specified files from the backup or restore operation.

   


Using Samba
Using Samba: A File and Print Server for Linux, Unix & Mac OS X, 3rd Edition
ISBN: 0596007698
EAN: 2147483647
Year: 2003
Pages: 475

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net