Data Domain:对 Data Domain Restorer (DDR) 上可用的“filesys fastcopy force”和“filesys fastcopy update”命令的说明
Summary: 本文介绍可选的 force/update 参数提供的功能,这些参数可提供给“filesys fastcopy”命令
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
Data Domain作系统 (DDOS) 包含“fastcopy”功能,可用于将 Data Domain Restorer (DDR) 上的文件克隆到 Data Domain 文件系统 (DDFS) 本地实例中的备用位置。例如:
请注意,此功能的工作原理如下:
在目标 mtree 已存在的情况下快速拷贝整个 mtree:
使用“force”参数:
当快速拷贝目标中已存在数据时,使用可选的 force 参数可避免以下情况:
在以非交互式方式(例如从脚本)运行“filesys fastcopy”命令时,这可能是有利的,但是应谨慎使用,因为如果运行了不正确的快速复制命令,则删除的任何目标数据都无法恢复。
使用“update”参数:
如果在没有 update 参数的情况下执行快速复制,则目标目录的内容将被删除并替换为源目录中的内容,即:
但是,如果使用 update 参数,则源目录的内容将添加到目标目录,并且不会删除目标目录中的现有文件,即:
但是,请注意,如果目标目录中存在与源目录中的文件同名的现有文件,则即使使用 update 参数,fastcopy 也会使用源中的内容覆盖目标文件(并且不会提示用户正在发生这种情况)。
# filesys fastcopy source [source directory tree or file] destination [destination directory tree or file]
请注意,此功能的工作原理如下:
- 在指定的目标位置创建全新的文件/文件集
- 将作为源的指定位置的现有文件的元数据克隆到目标处的新文件
- 每个文件的快速拷贝非常快速(因为该作只涉及作文件元数据,没有物理备份数据读/写到磁盘)- 它比使用外部客户端读取源文件/写入目标文件要快得多
- 通过快速拷贝创建的文件将针对磁盘上的现有数据进行完美的重复数据消除(因为它们将引用与源文件完全相同的物理数据)- 由于这种压缩,文件的统计数据可能会显示夸大的比率
- 提示确认应执行拷贝
- 在修改其内容之前创建目标 mtree 的时间点快照 — 如果命令运行错误,则可以使用此快照恢复已删除/覆盖的文件
# filesys fastcopy source /data/col1/backup/testfile destination /data/col1/backup/testfile_new
Destination “/data/col1/backup/testfile_new” already exists.
继续作将使用“/data/col1/backup/testfile”覆盖其内容。
是否确定?(是|否)[no]:是的
,好的,继续。
正在创建具有一小时保留期的快照“FASTCOPY-2017-05-08-04-57-47”...done
在发生错误时使用此快照进行恢复。
快速拷贝状态:fastcopy /data/col1/backup/testfile 到 /data/col1/backup/testfile_new:0.00 秒内无更改
Destination “/data/col1/backup/testfile_new” already exists.
继续作将使用“/data/col1/backup/testfile”覆盖其内容。
是否确定?(是|否)[no]:是的
,好的,继续。
正在创建具有一小时保留期的快照“FASTCOPY-2017-05-08-04-57-47”...done
在发生错误时使用此快照进行恢复。
快速拷贝状态:fastcopy /data/col1/backup/testfile 到 /data/col1/backup/testfile_new:0.00 秒内无更改
在目标 mtree 已存在的情况下快速拷贝整个 mtree:
# filesys fastcopy source /data/col1/backup destination /data/col1/new_mtree
Destination “/data/col1/new_mtree” already exists.
继续作将使用“/data/col1/backup”覆盖其内容。
是否确定?(是|否)[no]:是的
,好的,继续。
正在创建具有一小时保留期的快照“FASTCOPY-2017-05-08-04-58-34”...done
在发生错误时使用此快照进行恢复。
(00:00) 正在等待快速复制完成...
快速拷贝状态:fastcopy /data/col1/backup 到 /data/col1/new_mtree:在 0.02 秒内复制 3 个文件
Destination “/data/col1/new_mtree” already exists.
继续作将使用“/data/col1/backup”覆盖其内容。
是否确定?(是|否)[no]:是的
,好的,继续。
正在创建具有一小时保留期的快照“FASTCOPY-2017-05-08-04-58-34”...done
在发生错误时使用此快照进行恢复。
(00:00) 正在等待快速复制完成...
快速拷贝状态:fastcopy /data/col1/backup 到 /data/col1/new_mtree:在 0.02 秒内复制 3 个文件
使用“force”参数:
# filesys fastcopy force source [source directory tree or file] destination [destination directory tree or file]
当快速拷贝目标中已存在数据时,使用可选的 force 参数可避免以下情况:
- 系统提示用户进行确认
- 创建目标 mtree 的时间点快照
# filesys fastcopy force source /data/col1/backup/testfile destination /data/col1/backup/testfile_new
Fastcopy status: fastcopy /data/col1/backup/testfile to /data/col1/backup/testfile_new: no changes in 0.00 seconds
# filesys fastcopy force source /data/col1/backup destination /data/col1/new_mtree
fastcopy status: fastcopy /data/col1/backup to /data/col1/new_mtree: no changes in 0.01 seconds
Fastcopy status: fastcopy /data/col1/backup/testfile to /data/col1/backup/testfile_new: no changes in 0.00 seconds
# filesys fastcopy force source /data/col1/backup destination /data/col1/new_mtree
fastcopy status: fastcopy /data/col1/backup to /data/col1/new_mtree: no changes in 0.01 seconds
在以非交互式方式(例如从脚本)运行“filesys fastcopy”命令时,这可能是有利的,但是应谨慎使用,因为如果运行了不正确的快速复制命令,则删除的任何目标数据都无法恢复。
使用“update”参数:
# filesys fastcopy update source [source directory tree or file] destination [destination directory tree or file]
使用可选的 update 参数可防止快速拷贝删除目标目录/mtree 中存在的数据。例如,源目录和目标目录存在并包含文件,如下所示:
# ls /data/col1/backup/sourcedir
sourcefile1 sourcefile2 sourcefile3
# ls /data/col1/backup/destdir
destfile1 destfile2 destfile3
sourcefile1 sourcefile2 sourcefile3
# ls /data/col1/backup/destdir
destfile1 destfile2 destfile3
如果在没有 update 参数的情况下执行快速复制,则目标目录的内容将被删除并替换为源目录中的内容,即:
# filesys fastcopy source /data/col1/backup/sourcedir destination /data/col1/backup/destdir
...
Fastcopy status: fastcopy /data/col1/backup/sourcedir to /data/col1/backup/destdir: deleted 3 files;在 0.01 秒内复制了 3 个文件
...
Fastcopy status: fastcopy /data/col1/backup/sourcedir to /data/col1/backup/destdir: deleted 3 files;在 0.01 秒内复制了 3 个文件
# ls /data/col1/backup/destdir
sourcefile1 sourcefile2 sourcefile3
sourcefile1 sourcefile2 sourcefile3
但是,如果使用 update 参数,则源目录的内容将添加到目标目录,并且不会删除目标目录中的现有文件,即:
# ls /data/col1/backup/destdir
destfile1 destfile2 destfile3
# filesys fastcopy update source /data/col1/backup/sourcedir destination /data/col1/backup/destdir
Fastcopy status: fastcopy /data/col1/backup/sourcedir to /data/col1/backup/destdir: copied 3 files in 0.00 seconds
# ls /data/col1/backup/destdir
destfile1 destfile2 destfile3 sourcefile1 sourcefile2 sourcefile3
destfile1 destfile2 destfile3
# filesys fastcopy update source /data/col1/backup/sourcedir destination /data/col1/backup/destdir
Fastcopy status: fastcopy /data/col1/backup/sourcedir to /data/col1/backup/destdir: copied 3 files in 0.00 seconds
# ls /data/col1/backup/destdir
destfile1 destfile2 destfile3 sourcefile1 sourcefile2 sourcefile3
但是,请注意,如果目标目录中存在与源目录中的文件同名的现有文件,则即使使用 update 参数,fastcopy 也会使用源中的内容覆盖目标文件(并且不会提示用户正在发生这种情况)。
Additional Information
force 和 update 参数是互斥的,不能在单个“filesys fastcopy”命令中同时给出。
Affected Products
Data DomainProducts
Data DomainArticle Properties
Article Number: 000022663
Article Type: How To
Last Modified: 08 Sep 2025
Version: 5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.