Avamar:如何从 Avamar Client 还原复制目标上的数据。

摘要: 本文介绍如何从复制目标网格中的数据命令行执行客户端启动的还原。

本文适用于 本文不适用于 本文并非针对某种特定的产品。 本文并非包含所有产品版本。

说明

从 Avamar Client 运行以下命令:

avtar -x --server=<target-grid-name-or-IPaddr> --id=<user> --pswd=<password> --path=/REPLICATE/<source-grid-name-or-IPaddr>/<path-to-client> --target=<target-directory> <file-or-directory-to-be-restored> 
 

示例:

avtar -x --server=avamar-grid-02 --id=MCUser --pswd=MCUser1 --path=/REPLICATE/avamar-grid-01/clients/linux/client123 --target="/tmp/restore1" /home/admin/myshoppinglist.txt 
avtar -x --path=/REPLICATE/avamar-grid-01/clients/linux/client123 --target=/tmp/restore1  /home/admin/myshoppinglist.txt 
avtar Info <5551>: Command Line: /usr/local/avamar/bin/avtar.bin --flagfile=/usr/local/avamar/etc/usersettings.cfg --id=root --vardir=/usr/local/avamar/var --password=**************** --server=ave02.ddsrt.lab --bindir=/usr/local/avamar/bin --vardir=/usr/local/avamar/var --bindir=/usr/local/avamar/bin --sysdir=/usr/local/avamar/etc -x --account=/REPLICATE/avamar-grid-01/clients/linux/client123 --sequencenumber=6 --target=/tmp/restore1/home/admin/myshoppinglist.txt
avtar Info <7977>: Starting at 2025-07-03 21:42:26 PDT [avtar Jan 12 2022 15:38:04 19.4.100-124 Linux-x86_64]
avtar Info <6555>: Initializing connection
avtar Info <5552>: Connecting to Avamar Server (avamar-grid-01)
avtar Info <5554>: Connecting to one node in each datacenter
avtar Info <5583>: Login User: "root", Domain: "default", Account: "/REPLICATE/avamar-grid-01/clients/linux/client123"
avtar Info <5580>: Logging in on connection 0 (server 0)
avtar Info <5582>: Avamar Server login successful
avtar Info <10632>: Using Client-ID='e2adcd2a7da2882b5d9a2fabcc3b96a8f2828728'
avtar Info <5550>: Successfully logged into Avamar Server [19.4.0-124]
avtar Info <5295>: Starting restore at 2025-07-03 21:42:26 PDT as "admin" on "client123" (2 CPUs) [19.4.100-124]
avtar Info <41359>: Backup #6 had been created by avtar version 19.4.100-124 as plugin 1001-Filesystem
avtar Info <5949>: Backup file system character encoding is UTF-8.
avtar Info <8745>: Backup from Linux host "/REPLICATE/avamar-grid-01/clients/linux/client123" (ave01) with plugin 1001 - Linux Filesystem
avtar Info <5538>: Backup #6 label "My_backup_99_20230727_3" timestamp 2023-07-27 21:43:24 PDT, 1 files, 341.5 MB
avtar Info <5291>: Estimated size for "/home/admin/myshoppinglist.txt" is 341.5 MB
avtar Info <19108>: Verified restore target space ok. freespace:38456332288 estimate:358051840 checkpath:"/tmp"
avtar Info <5260>: Restoring files from "/home/admin/myshoppinglist.txt" to directory "/tmp/restore1".
avtar Info <5267>: Restore of "/home/admin/myshoppinglist.txt" completed
avtar Info <7925>: Restored 214.6 MB from selection(s) with 341.5 MB in 1 files
avtar Info <6090>: Restored 214.6 MB in 0.02 minutes: 768.3 GB/hour (3,666 files/hour)
avtar Info <7883>: Finished at 2025-07-03 21:42:27 PDT, Elapsed time: 0000h:00m:00s
avtar Info <6645>: Not sending wrapup anywhere.
avtar Info <5314>: Command completed (exit code 0: success)
 
请求的一个或多个文件现在应位于指定的还原位置(在此示例中为 /tmp/restore1/myshoppinglist.txt),
 
 

提醒:

  • 要验证”source-grid-name-or-IPaddr“在目标网格上运行以下命令:
avmgr getl --path=/REPLICATE
 
  • 默认情况下,如果未指定标签号,则对最近的备份执行还原。要使用其他备份,请使用”--labelnum=x“选项:
avtar -x --server=<target-grid-name-or-IPaddr> --id=<user> --pswd=<password> --path=/REPLICATE/<source-grid-name-or-IPaddr>/<path-to-client> --labelnum=x --target=<target-directory> <file-or-directory-to-be-restored> 

示例:

avtar -x --server=avamar-grid-02 --id=MCUser --pswd=MCUser1 --path=/REPLICATE/avamar-grid-01/clients/linux/client123 --target="/tmp/restore1" --labelnum=6 /home/admin/myshoppinglist.txt 
 
  • 要确定复制目标上的备份(还提供了标签号),请执行以下作:
avmgr getb --path=/REPLICATE/<source-grid-name-or-IPaddr>/<path-to-client>
 
  • 要确定 "file-or=directory-to-be-restored“,请先执行列出作(如果需要,请指定标签编号):
avtar -x --server=<target-grid-name-or-IPaddr> --id=<user> --pswd=<password> --path=/REPLICATE/<source-grid-name-or-IPaddr>/<path-to-client>
avtar -x --server=<target-grid-name-or-IPaddr> --id=<user> --pswd=<password> --path=/REPLICATE/<source-grid-name-or-IPaddr>/<path-to-client> --labelnum=x

其他信息

开关 --acnt--path 是可以互换的。

受影响的产品

Avamar, Avamar Server
文章属性
文章编号: 000014384
文章类型: How To
上次修改时间: 07 7月 2025
版本:  6
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。