smbtar - 直接备份SMB/CIFS共享资源到UNIX磁带
wing
smbtar - 直接备份SMB/CIFS共享资源到UNIX磁带
smbtar - shell script for backing up SMB/CIFS shares directly to UNIX tape
drives
smbtar - 直接备份SMB/CIFS共享资源到UNIX磁带设备的shell脚本
SYNOPSIS
语法
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
DESCRIPTION
描述
This program is part of the Samba suite.
此程序是samba套件的一部分。
smbtar is a very small shell script on top of smbclient which dumps SMB
shares directly to tape.
smbtar是个在smbclient基础上建立的非常小的shell脚本,用于把SMB共享资源直接写到
磁带上。
OPTIONS
选项
-s server
The SMB/CIFS server that the share resides upon.
指定提供共享资源的SMB/CIFS服务器。
-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.
在恢复 / 备份文件前改变初始化目录directory。
-v
Verbose mode.
指定用详细模式。
-p password
The password to use to access a share. Default: none
指定要访问的共享资源的口令。默认是:none。
-u user
The user id to connect as. Default: UNIX login name.
指定联接时的用户账号。默认是:UNIX登录账号。
-t tape
Tape device. May be regular file or tape device. Default: TAPE environmental
variable; if not set, a file called tar.out.
指定所用的磁带设备。这里可能是正常的文件或磁带设备。默认是:TAPE 环境变量;如
果不指定的话,以tar.out作为文件名。
-b blocksize
Blocking factor. Defaults to 20. See tar (1) for a fuller explanation.
指定块比例。默认是20,请查看tar (1)中的完整解释。
-N filename
Backup only files newer than filename. Could be used (for example) on a log
file to implement incremental backups.
只备份比filename指定文件更新的文件。可以用在记录文件中以实现增量备份。
-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.
指定增量模式;tar文件只备份设定归档位的文件。在对每个文件进行读取时归档位可以
重新设定。
-r
Restore. Files are restored to the share from the tar file.
指定做恢复操作。从tar备份文件中恢复文件到共享资源上。
-l log level
Log (debug) level. Corresponds to the -d flag of smbclient (1).
记录(调试)等级。这与smbclient (1)的-d参数含义相当。
ENVIRONMENT VARIABLES
环境变量
The TAPE variable specifies the default tape device to write to. May be
overridden with the -t option.
TAPE变量指定了执行写操作的默认磁带设备。可以用-t选项来重设。
BUGS
潜在错误
The smbtar script has different options from ordinary tar and tar called from
smbclient.
从smbclient中调用tar命令及原始的tar命令与smbtar脚本有些不大相同的选项。
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.
基于安全性方面的站点不太喜欢用脚来处理PC口令。在共享资源接口上备份和恢复会在文
件列表上进行工作。smbtar和GNU的tar一起使用非常出色,但可能和其它的一些版本使用
时并不太好。
VERSION
版本
This man page is correct for version 2.0 of the Samba suite.
此手册页是针对samba套件版本2.0的。
SEE ALSO
参见
smbclient (1), smb.conf (5)
DIAGNOSTICS
诊断
See the DIAGNOSTICS section for the smbclient command.
参见smbclient命令中的DIAGNOSTICS部分。
AUTHOR
作者
The original Samba software and related utilities were created by Andrew
Tridgell [email protected]. Samba is now developed by the Samba Team as an
Open Source project similar to the way the Linux kernel is developed.
samba软件和相关工具最初由Andrew Tridgell [email protected]创建。samba现在由
开发组作为类似Linux内核开发采用的开放源代码计划方式来发展。
The original Samba man pages were written by Karl Auer. The man page sources
were converted to YODL format (another excellent piece of Open Source
software, available at ftp://ftp.icce.rug.nl/pub/unix/) and updated for the
Samba2.0 release by Jeremy Allison. [email protected].
samba手册页最初由Karl Auer撰写。它的源码已被转换成YODL(一种极好的开放源代码软
件,可以在ftp://ftp.icce.rug.nl/pub/unix/处获得)格式并已由Jeremy Allison更新到
samba2.0版本。
See samba (7) to find out how to get a full list of contributors and details
on how to submit bug reports, comments etc.
请参见samba (7)查找如何获得一份完整的维护者列表以及如何提交错误报告及注解等等
。
发布人:netbull 来自:LinuxAid