Xcopy ile klasör izinleriyle beraber taşıma

Xcopy is including will all modern Windows Operating Systems, it has some great switches for doing things such as verifying the copy and only coping file that are newer than the destination.

Run: xcopy /? for a full list of switches but here are some usful one if you are moving a large amount of data and want to keep NFTS permission.

An Initial Full Copy
xcopy “C:\Source Folder” “\\Destination Server\Share\Folder” /X /H /E /V

Copy files or folders that have changed since the initial copy
xcopy “C:\Source Folder” “\\Destination Server\Share\Folder” /X /H /E /V /D /Y

Switch Explaination
/X – Copies file audit settings and file ownership and ACL information.
/H – Copies hidden and system files.
/E – Copies directories and subdirectories, including empty ones.
/V – Verifies each new file.

/D – Copies files changed on or after the specified date (D:m-d-y).If no date is given, copies only those files whose source time is newer than the destination time.
/Y – Suppresses prompting to confirm you want to overwrite an existing destination file.

Categories: IT

No Comments

Post a Comment