differential backup

A

Ales Baranek

hello,
I want to backup files by copying. How to copy all files (all of directory
structure) and reset archive bit on source files that were copied?

Ales
 
H

Herb Martin

Ales Baranek said:
hello,
I want to backup files by copying. How to copy all files (all of directory
structure) and reset archive bit on source files that were copied?

"Normal backup" set to the parent directory of the files, with all
subdirecties
included.

You do NOT use a "Differential" or other type of backup for this goal.
 
F

foxidrive

I want to backup files by copying. How to copy all files (all of directory
structure) and reset archive bit on source files that were copied?

I'm ignoring the subject line and answering the question posed.

Use xcopy - for help type

xcopy /?
 
A

Ales Baranek

And how to copy all files from source directory and reset Archive bit.
I know about /m switch but it copies files witch Archive bit set only. Xcopy
without /m switch copies all files but does't reset Archive attrib.
I need to copy all of files and directories from source and reset its
Archive attrib.
 
T

Todd Vargo

Ales Baranek said:
And how to copy all files from source directory and reset Archive bit.
I know about /m switch but it copies files witch Archive bit set only. Xcopy
without /m switch copies all files but does't reset Archive attrib.
I need to copy all of files and directories from source and reset its
Archive attrib.

xcopy src\ dst\ /y
attrib -a src\*.*
 
T

Todd Vargo

Todd said:
xcopy src\ dst\ /y
attrib -a src\*.*

Oh, just noticed the original post included "all of directory structure" so
include the subdirectory switches for both.

xcopy src\ dst\ /y /s
attrib -a src\*.* /s
 
A

Ales Baranek

And what to do for example in this case:
target storage has not enough free space and some files will not copy

Ales
 
F

foxidrive

Delete some files? Calculate the storage requirements in advance?

It's hard to give specific batch related suggestions without knowing the
full details of the situation.
 
A

Al Dunbar

Or maybe what he wants is this:

xcopy /m {source} {dest}

The /M switch causes xcopy to copy only those files with the archive bit
set, after which the bit is set. If a file copy fails because, for example,
the output volume ran out of space, that file's bit remains set.

In the olden days we used to use this to copy more files than would fit on
one floppy to a series of them. If there were any failures, we'd pop in the
next empty disk, hit the up arrow key to recall the same command, then hit
ENTER.


/Al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top