跳到正文
TURNKEYGNU / LINUX
应用文档博客截图GitHubTurnKey Hub
文中文
EnglishEspañol中文日本語PortuguêsDeutsch
ưμ㼯A/tklbam 重存: 恢复备份

文档

tklbam 重存: 恢复备份

完整人页源

SYNOPSIS 密码

tklbam- 重置 [ - 选项] [ < < hub- backup > ] { 路径/ 到/ 备份/ 摘录 }

ARGUMENTS 密码

<hub-backup>:=备份-id QQ 唯一标签模式

OPTIONS 密码

X0++ 路径/ 备份/: 不恢复系统而将备份下载到目录

--time=TIME: 从中恢复时间

TIME:= YYYY-MM-DD → YYYY-MM-DDTHh:mm:s → → <int> [mhDWMY] (中文(简体) ).

例如,

2010-08-06 - 2010年8月6日 00: 00 - 时间:
2010-08-07T14:00 (英语). - 2010年8月7日 14:00 UTC 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时空 时 时空 时空 时空 时空 时空 时 时 时 时空 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时 时
6米(6米) 高温 - 6分钟
5小时 - 5小时
4D 调用 - 4天前 - 4天前 - 4 days ago
3W 电话 - 3个星期前
2M( 双层) -两个月前
1岁 - 一年前 - 一年前 - 一年前 - 一年前 - 一年前 - 一年前 - 一年 a year ago

--limits=LIMITS: 恢复文件系统或数据库限制

用于控制备份的哪些部分将被恢复.

以减号设定限额,就变成一个排除。
多个项目是空格分隔的。 MUST 路径中的空格将被脱逃 。

以 X0++++X1++++ 与\ 空格 - X2+++ 路径

LIMITS := " LIMIT -1 .. LIMIT -N"
LIMIT:=-? (/path/to/include/or/exclude Qmysql:数据库[/table] QX pgsql:数据库[/table]).

--keyfile=KEYFILE: 代管密钥文件路径。

默认: 枢纽自动提供此功能 。

--address=TARGET_URL:手动备份目标URL(需要--keyfile).

              支持的存储后端及其 URL 格式 :

              存档: =/some_dir
              rsync://user[:password]@other.host[:port]//absolute_path 互联网档案馆的存檔,存档日期2013-09-02.
              rsync://user[:密码]@other.host[:port]/relative_path
              rsync://user[:密码]@other.host[:port]:::/module/some_dir :@:pass:pass:pass:pass:pass:X:X:X:X:X:X:X:X:X:X:X:X:X:X:X:X:0:0:X:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:X:X:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:
              s3://other.host/bucket_name[/prefix]
              s3+http://bucket_name[/prefix] (中文(简体) ).
              ftp://user [:密码] (中文(简体) ).@other.host[:port]/some_dir (英语).
              ftps://user[:密码]@other.host[:port]/some_dir 互联网档案馆的存檔,存档日期2013-09-02.
              hsi://user[:密码]@other.host[:port]/some_dir
              imap://user[:密码]@other.host[:port]/some_dir
              scp://user[:密码]@other.host[:port]/some_dir 互联网档案馆的存檔,存档日期2013-09-02.
              ssh://user[:密码]@other.host[:port]/some_dir (英语).
              塔荷://alias/directory
              网络dav://user[:密码]@other.host/ someo_dir
              网络davs://user[:密码]@other.host/ someo_dir
              gdocs://user[:密码]@other.host/some_dir

默认: 枢纽自动提供此功能 。

--skip-files 密码: 不恢复文件系统

--skip-database 密码: 不要恢复数据库

--skip-packages 密码: 不要恢复新软件包

--logfile=PATH: 日志文件的路径。 默认: /var/log/tklbam-restore

--no-rollback 密码: 禁用回滚

--quiet 密码: 禁用反馈

--force 密码: 禁用理智检查

--debug 密码: 在 Duplicty 之后运行 SHELL 美元

USAGE EXAMPLES

       # 恢复枢纽备份 id 1
       tklbam 重置 1 个

       # 与上面相同,但分两步:先下载摘要,然后应用
       tklbam-restore 1 --raw-download=/tmp/mybackup
       tklbam-restore /tmp/mybackup

       # 恢复用 tklbam 备份创建的备份 --raw-uploadQ/srv
       tklbam-restore 2 --raw-download=/srv

       # 从Duplicity档案中恢复本地文件系统的自定义备份地址
       tklbam- restore --addressXXFile:///mnt/backups/mybackup --keyfileMyXXMBAUP.escrow 页面存档备份,存于互联网档案馆 互联网档案馆的存檔,存档日期2014-09-02.

       # 模拟恢复 Hub备份 id 1,同时排除 /root 路径的改变,
       # mysql '客户' DB, 和“ 网络应用程序” DB 中的“ 电子邮件” 表
       tklbam- restore 1 --simulate --limitsXXXXXXXXXXXX:客户 - mysql:webapp/电子邮件" 互联网档案馆的存檔,存档日期2013-09-02.

       # 模拟只恢复 Hub 备份 id 1 中的 /root 文件
       tklbam-restore 1 --simulate --skip-database --skip-packages --limits="/root"

FILES 密码

钩子: /etc/tklbam/hooks.d 密码

TURNKEYGNU / LINUX

无需从零开始,掌控自己的基础设施。

探索 TurnKey
关于文档常见问题博客GitHub
自由开源默认安全随时可部署