Created
December 3, 2013 06:59
-
-
Save jysperm/7765044 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AnyBack | |
./anyback <op> <op specified options> <common options> <dir> | |
BACKEND: | |
支持的后端和需要提供的信息: | |
LOCAL: dir | |
SFTP: host, user, passwd | |
BAE: | |
LOCAL 模式下,备份包不会在 `backup` 目录下缓存。 | |
META DIR: | |
AnyBack 会在要备份的目录下创建一个 `.anyback` 的目录用于储存元信息, | |
AnyBack 会自动排除 `.anyback` 目录下的文件。 | |
backend.json - 备份后端相关信息 | |
options.json - 一般选项 | |
excludes - 排除的文件列表 | |
lastbackuptime - 上次备份时间 | |
backup/ - 等待上传,或已经下载的备份 | |
<TIME>.zip | |
backup-info/ - 历史备份的摘要信息 | |
<TIME>.json: filenum, files, size, filetimes | |
OP: | |
init - 初始化/更新选项 | |
初始化或更新 AnyBack 所需的元数据, | |
这些选项会被写到 META DIR 中的 options.json 等文件中。 | |
--backend <BACKEND> | |
指定备份后端 | |
--dir <DIR> | |
要备份的目录(默认 `.`) | |
--cycle <Sec> | |
滚动周期(默认 `3600 * 24 * 7`) | |
--exclude-size <Byte> | |
排除大于该尺寸的文件(默认 `1027 * 1024 * 10`) | |
--add-exclude-files <REGEX> | |
设置要排除文件 | |
check - 列出本次需要备份的文件列表 | |
backup - 生成并上传备份包 | |
list - 列出历史备份 | |
backto - 恢复到指定的时间 | |
该选项会自动下载所需要的备份包。 | |
--before <TIME> | |
--after <TIME> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment