惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
博客园 - Franky
GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
博客园_首页
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recent Announcements
Recent Announcements
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
L
LangChain Blog
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
AI
AI
T
Troy Hunt's Blog
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
Attack and Defense Labs
Attack and Defense Labs

博客园 - 在天空滑翔

Material X does not have packaging material type and is therefore not a pack.mat. - 在天空滑翔 Why do people stay in a company PDF To Excel Converter - 在天空滑翔 SRM 一点笔记 HUM [ZT]如何实现打印输出到Adobe PDF格式文件 TCode: SGEN 物料主数据中Valuation Class的确定过程 几个常用的MM报表T-Code LSMW one tip - 字段定义 scc4查看系统安装了多少个client variant configuration 被搁浅 最近学习 variant configuration Storage bin Plant相关的几个概念 SAP Best Practices 简要介绍 MMAM to change the material type for an existing material. [SAP]业务区域的帐确定 SD中几种特殊的财务处理概念
备份文件,并且保留权限
在天空滑翔 · 2009-08-12 · via 博客园 - 在天空滑翔

由于最近公司文件服务器扩容,使用Raid 5来实现,需要备份一下原来的数据,但是备份的时候,如果简单的把文件复制到另外一个硬盘,所有的权限设置都没有了。
在网上搜索了一会,微软给了2个工具permcopy和scopy,但是scopy找不到了,据说在Windows NT Server 4.0 Resource Kit 里面,但是找不到。
终于在一个中文的blog上找到了一个文章,使用Xcopy也可以实现。

http://allenggg.spaces.live.com/blog/cns!49B6CFCD69ECA1C8!215.entry,多谢这位小拐。

我增加了一个参数/C
------------------------------------------------------------------

可以使用带 /O /X /E /H /K /C 开关的 Xcopy 命令复制文件并保留已明确应用于这些文件的现有权限。
将一个文件夹复制到另一个文件夹中并保留其权限
1. 单击开始,然后单击运行。
2. 在打开框中,键入 cmd,然后单击确定。
3. 键入 xcopy sourcedestination /O /X /E /H /K ,然后按 Enter,其中 source 是要复制的文件的源路径,destination 是这些文件的目标路径。


 /O           Copies file ownership and ACL information.
 /X           Copies file audit settings (implies /O).
 /E           Copies directories and subdirectories, including empty ones.
              Same as /S /E. May be used to modify /T.
 /H           Copies hidden and system files also.
 /C           Continues copying even if errors occur.
 /K           Copies attributes. Normal Xcopy will reset read-only attributes.