smbtar 中文man页面

系统
此程序是samba套件的一部分。 smbtar是个在smbclient基础上建立的非常小的shell脚本,用于把SMB共享资源直接写到磁带上。

名字

smbtar  - 直接备份SMB/CIFS共享资源到UNIX磁带设备的shell脚本

总览

smbtar -s server [-p password] [-x service] [-X] [-d directory] [-u user] [-t tape] [-b blocksize] [-N filename] [-i] [-r] [-l log level] [-v] filenames

描述

此程序是samba套件的一部分。

smbtar是个在smbclient基础上建立的非常小的shell脚本,用于把SMB共享资源直接写到磁带上。

选项

-s server
指定提供共享资源的SMB/CIFS服务器。
-x service
指定要联接的共享资源。默认情况下就是备份。
-X
排除模式,从建立或者恢复的备份项中排除文件名。
-d directory
在恢复 / 备份文件前改变初始化目录directory。
-v
指定用详细模式。
-p password
指定要访问的共享资源的口令。默认是:none。
-u user
指定联接时的用户账号。默认是:UNIX登录账号。
-t tape
指定所用的磁带设备。这里可能是正常的文件或磁带设备。默认是:TAPE 环境变量;如果不指定的话,以tar.out作为文件名。
-b blocksize
指定块比例。默认是20,请查看tar (1)中的完整解释。
-N filename
只备份比filename指定文件更新的文件。可以用在记录文件中以实现增量备份。
-i
指定增量模式;tar文件只备份设定归档位的文件。在对每个文件进行读取时归档位可以重新设定。
-r
指定做恢复操作。从tar备份文件中恢复文件到共享资源上。
-l log level
记录(调试)等级。这与smbclient (1)的-d参数含义相当。

环境变量

TAPE变量指定了执行写操作的默认磁带设备。可以用-t选项来重设。

错误

从smbclient中调用tar命令及原始的tar命令与smbtar脚本有些不大相同的选项。

警告

基于安全性方面的站点不太喜欢用脚本来处理PC口令。在共享资源接口上备份和恢复会在文件列表上进行工作。smbtar和GNU的tar一起使用非常出色,但可能和其它的一些版本使用时并不太好。

版本

此手册页是针对samba套件版本2.0的。

另见

smbclient (1), smb.conf (5)

  #p#

NAME

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

SYNOPSIS

smbtar [-r] [-i] [-a] [-v] {-s server} [-p password] [-x services] [-X] [-N filename] [-b blocksize] [-d directory] [-l loglevel] [-u user] [-t tape] {filenames}

DESCRIPTION

 

This tool is part of the samba(7) suite.

smbtar is a very small shell script on top of smbclient(1) which dumps SMB shares directly to tape.

OPTIONS

-s server
The SMB/CIFS server that the share resides upon.
-x service
The share name on the server to connect to. The default is "backup".
-X
Exclude mode. Exclude filenames... from tar create or restore.
-d directory
Change to initial directory before restoring / backing up files.
-v
Verbose mode.
-p password
The password to use to access a share. Default: none
-u user
The user id to connect as. Default: UNIX login name.
-a
Reset DOS archive bit mode to indicate file has been archived.
-t tape
Tape device. May be regular file or tape device. Default: $TAPE environmental variable; if not set, a file called tar.out .
-b blocksize
Blocking factor. Defaults to 20. Seetar(1) for a fuller explanation.
-N filename
Backup only files newer than filename. Could be used (for example) on a log file to implement incremental backups.
-i
Incremental mode; tar files are only backed up if they have the archive bit set. The archive bit is reset after each file is read.
-r
Restore. Files are restored to the share from the tar file.
-l log level
Log (debug) level. Corresponds to the-d flag of smbclient(1).
 

ENVIRONMENT VARIABLES

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

BUGS

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

CAVEATS

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

DIAGNOSTICS

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

VERSION

This man page is correct for version 3.0 of the Samba suite.

SEE ALSO

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

 

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-25 15:09:38

clearerr中文man

2011-08-25 15:19:39

dirname中文man

2011-08-25 15:21:53

execl中文man

2011-08-25 16:28:50

fread中文man

2011-08-25 16:52:54

getchar中文man

2011-08-25 17:27:58

rewind中文man

2011-08-25 18:41:31

vprintf中文man

2011-08-23 10:03:40

useradd中文man

2011-08-23 10:29:02

chpasswd中文man

2011-08-23 10:34:22

convertquot中文man

2011-08-23 16:24:57

smbmnt中文man

2011-08-23 15:39:34

rpmbuild中文man

2011-08-23 18:00:21

LDP中文man

2011-08-25 09:40:49

UPDATE中文man

2011-08-24 15:11:15

explain中文man

2011-08-24 15:29:06

grant中文man
点赞
收藏

51CTO技术栈公众号