asbackup备份命令的使用
asbackup备份命令的运行方式:
asbackup [OPTIONS]
命令的最简单形式是指定需要备份的命名空间(
namespace )和本地目录。
例子:
asbackup -d backup_01_23_2013 -n test
如何在指定的群集上备份命名空间(namespace):
- 高优先级
-f 3
, - 如果集群失败了(即你希望数据是正确的),终止备份
-c
。 - 提供详细的信息到控制台-v
例子:
或者如果你想备份集群的特定节点,只需要给它地址和服务端口(默认3000)的节点。asbackup -h
10.0.0.9 -p 3000-d backup_01_23_2013 -n test -f3 -c -v
$ asbackup -l"host1:port1;host2:port2"-d backup_01_23_2013 -n test -f3 -c -v
命令参数各选项说明:
Option | Default | Description |
---|---|---|
-h host |
127.0.0.1 | Host that acts as seed (entry point) to the cluster. Any single node can be specified and the entire cluster will be automatically discovered. |
-p port |
3000 | Port to use with the host specified in the -h option. |
-n namespace |
- | Namespace to back up. (Mandatory) |
-s set |
ALL SETS | The SET to backup up. |
-U user name |
- | User name with read permission. (Mandatory if security is enabled on server side) |
-P password |
- | Password. | </