- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- Simple XCOPY Question - Backup Files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 03:09 AM
тАО08-18-2006 03:09 AM
1. I only want to copy files and folders which are either new since the last backup, or modified. So I use the /A switch;
2. Overwrite existing files with a newer version without prompting, so I use /Y.
The user claims some files which have changed or been created since the last backup do not appear on the destination.
Is my syntax correct?
XCOPY C:\data\*.* H:\data\*.* /A /E /K /Y /Q
This user does not need a full backup program. I think XCOPY is perfect for what he needs.
- Jay
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 04:20 AM
тАО08-18-2006 04:20 AM
Re: Simple XCOPY Question - Backup Files
The syntax should be:
xcopy /M /E /K /Y /Q c:\data\*.* h:\data\
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 05:28 AM
тАО08-18-2006 05:28 AM
Re: Simple XCOPY Question - Backup Files
I think what I need is:
XCOPY C:\data\*.* H:\data /M /E /K /Y /Q
According to 'XCOPY /?', it should be:
XCOPY source destination switches
...which is different from most other commands.
You are right, I should be using /M, not /A.
I'm not sure what the *.* in the destination was doing, but I don't think it should be there, based on the examples I have seen.
I will give this a try next week.
- Jay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 12:20 PM
тАО08-18-2006 12:20 PM
SolutionMy understanding, is that either you specify *.* in both cases, or you add in the /I switch.
Are you going to need to also copy the ACL and ownership info? If so, everything looks good, but add in the /O switch.
XCOPY C:\data\*.* H:\data /M /E /I /K /Y /Q /O
And, if these are critical files you might want to think about verifying the copy by using /V.
XCOPY C:\data\*.* H:\data /M /E /I /K /Y /Q /O /V
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 03:31 PM
тАО08-18-2006 03:31 PM
Re: Simple XCOPY Question - Backup Files
I think you are right about *.*. I believe I understand that syntax now.
I think this will do what I need:
XCOPY C:\data\*.* H:\data\*.* /M /E /K /Y /Q
Perhaps the user was not pressing F5 to refresh the destination file list.
- Jay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2006 06:33 AM
тАО08-20-2006 06:33 AM
Re: Simple XCOPY Question - Backup Files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2006 06:33 AM
тАО08-20-2006 06:33 AM