In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is about how to use Xcopy to copy and back up a large number of files. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
First of all, what is Xcopy?
Xcopy is a Windows built-in tool to copy files and directories, can copy subdirectories, is a very easy to use command line tool.
The common way to copy a tape subdirectory is:
Xcopy "d:\ website"d:\ webbak" / s/e/y
For website backup, we can copy only those files that have been modified, using the following command:
Xcopy "d:\ website"d:\ webbak" / s/e/y/d
This command automatically copies files with changed dates based on the date of the file.
Finally, use more formats:
XCOPY source [destination] [/ A | / M] [/ D [: date]] [/ P]
[/ C] [/ I] [/ Q] [/ F] [/ L] [/
[/ K] [/ N] [/ O] [/ X] [/ Y] [/
[/ EXCLUDE:file1 [+ file2] [+ fi
Source specifies the file to copy.
Destination specifies the location and / or name of the new file.
/ An only copies files with archived property sets
But does not change the attribute.
/ M copies only files with archived property sets
And close the archive properties.
/ D:m-d-y copies files that are changed on or after the specified date.
If no date is provided, only those source times are copied
A file newer than the target time.
/ EXCLUDE:file1 [+ file2] [+ file3]...
Specifies a list of files that contain strings. Every string
Must be on a separate line of the file. If there is any
The absolute path between the string and the file to be copied
Match, that file will not be copied.
For example, a string that specifies a string such as\ obj\ or .obj will line
All files under the directory obj or with
The file with the .obj extension.
/ P prompt before creating each target file.
/ S copies directories and subdirectories except for empty ones.
/ E copy directories and subdirectories, including empty ones.
Same as / S / E. Can be used to modify / T.
/ V validate each new file.
/ W prompts you to press the key before copying.
/ C continues to copy even if there is an error.
/ I if the target does not exist, more than one file is being copied
Assume that the target must be a directory.
The file name is not displayed when / Q is copied.
/ F displays the full source and destination file names when replicating.
/ L displays the files to be copied.
/ G allows unencrypted files to be copied to
Encrypted targets are not supported.
/ H also copies hidden and system files.
/ R overwrites read-only files.
/ T creates a directory structure, but does not copy files.
Empty directories or subdirectories are not included. / T / E includes
Empty directories and subdirectories.
/ U copies only files that already exist in the target.
/ K copy attributes. A normal Xcopy resets the read-only property.
/ N is copied with the generated short name.
/ O copy file ownership and ACL information.
/ X copy file audit settings (implied / O).
/ Y copies file audit settings (implied / O).
Existing target file.
/-Y causes a prompt to confirm that a
Existing target file.
/ Z copies network files in restart mode.
The command line switch / Y can be set in advance in the COPYCMD environment variable. This may be overwritten by /-Y on the command line.
Thank you for reading! On "how to use Xcopy to achieve mass file replication and backup" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.