Solved

Robocopy files not having archive bit set

Posted on 2010-09-08
3
980 Views
Last Modified: 2013-11-09
I setting up a process to move/copy files off of a server with robocopy. Each day I copy files to a remote storage server. To easily and visually keep track of what files have been copied (I also write a log) I change the archive bit on the source files with the /M switch during the copy. Later I want to move the files that don't have the archive bit set to a different folder. Is there a switch or other way to have robocopy "see" the bit is not set and only move those files?
0
Comment
Question by:LMMS
3 Comments
 
LVL 3

Accepted Solution

by:
Marbleman earned 250 total points
ID: 33631588
Take a look at the /XA Option: /XA[A] could solve the problem because it is supposed to exclude all files with the Archive-Flag set...
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 33631617
According to this, the /a should do it:

http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspx

Are you using 2008?
0
 

Author Closing Comment

by:LMMS
ID: 33664398
Ths /XA:A switch works. I overlooked it when looking at all the possible settings. Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
run cmd.exe remotely 5 40
testing sql16 on win10 vs OS16 2 32
Malware Exploit 5 70
Some AHK commands fail in Microsoft OneNote 5 28
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now