differential backup

  • Thread starter Thread starter Ales Baranek
  • Start date Start date
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
 
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.
 
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 /?
 
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.
 
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\*.*
 
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
 
And what to do for example in this case:
target storage has not enough free space and some files will not copy

Ales
 
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.
 
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
 
Back
Top