is there a dos command that works like xcopy but compares file sizesor last modified dates?

M

Mike S

I use xcopy to backup large amounts of data from three different parent
folders to a 2nd hdd. It works great, but I would like to use a more
efficient method of only backing up files that are a different size,
have a different last modified date, or don't already exist, so no files
that haven't been modified since the last backup will be copied again.
Is there a DOS command similar to XCopy that will allow me to do this? I
like using DOS commands because they are fast.
 
M

Mike S

I use xcopy to backup large amounts of data from three different parent
folders to a 2nd hdd. It works great, but I would like to use a more
efficient method of only backing up files that are a different size,
have a different last modified date, or don't already exist, so no files
that haven't been modified since the last backup will be copied again.
Is there a DOS command similar to XCopy that will allow me to do this? I
like using DOS commands because they are fast.

Sorry, I posted too soon, turns out XCopy has a /D that I didn't read
closely enough, it does exactly what I wanted:

XCOPY source [destination] [/D[:date]]

/d[:mm-dd-yyyy] : Copies source files changed on or after the specified
date only. If you do not include a mm-dd-yyyy value, xcopy copies all
Source files that are newer than existing Destination files. This
command-line option allows you to update files that have changed.
 
Y

Yousuf Khan

I use xcopy to backup large amounts of data from three different parent
folders to a 2nd hdd. It works great, but I would like to use a more
efficient method of only backing up files that are a different size,
have a different last modified date, or don't already exist, so no files
that haven't been modified since the last backup will be copied again.
Is there a DOS command similar to XCopy that will allow me to do this? I
like using DOS commands because they are fast.

Xcopy itself does that. Use the "/m" option.

Yousuf Khan
 
M

Mike S

Xcopy itself does that. Use the "/m" option.

Yousuf Khan

Thanks, that wasn't clear from this site:

http://www.lagmonster.org/docs/DOS7/z-xcopy.html

/M Only copies files with the archive attribute set, turning off
the archive attribute of the source files.
----------------------------------------

This was more to your point:

ARCHIVING FILES

Use Xcopy's /m switch to back up only files that have been changed since
the last time they were Xcopied. This works only on files that have been
Xcopied at least once before and will not work on un-Xcopied files.

When Xcopy copies a file, it resets the original file's archive bit from
1 to 0. For more on archive bits, see DOS Attrib. Whenever you update a
file, the archive bit is set to 1. When you use the /m switch, Xcopy
copies only files with the archive bit set to 1.

The following example backs up all files onto the D disk:

xcopy *.* d: /m

ARCHIVE ONE HARD DISK TO ANOTHER

The following example copies everything from the C: drive to the D:
drive that has changed since the last time the files on C: were Xcopied.
This includes the root and all subdirectories. The /s switch is used
here in order to include all subdirectories.

xcopy c:\*.* d:\ /s /m

http://www.answers.com/topic/dos-xcopy

Thanks,
Mike
 
M

mm

I use xcopy to backup large amounts of data from three different parent
folders to a 2nd hdd. It works great, but I would like to use a more
efficient method of only backing up files that are a different size,
have a different last modified date, or don't already exist, so no files
that haven't been modified since the last backup will be copied again.
Is there a DOS command similar to XCopy that will allow me to do this? I
like using DOS commands because they are fast.

Don't know, but xxcopy at www.xxcopy.com has an enormous set of
options, backward compatible with xcopy. It will do things you've
never considered doing. It has its own yahool discussion list if
there are questions.

Free to non-commerical users and not that expensive elsewise (is that
a word?)
 
Y

Yousuf Khan

Thanks, that wasn't clear from this site:

http://www.lagmonster.org/docs/DOS7/z-xcopy.html

/M Only copies files with the archive attribute set, turning off
the archive attribute of the source files.
----------------------------------------

This was more to your point:

ARCHIVING FILES

Use Xcopy's /m switch to back up only files that have been changed since
the last time they were Xcopied. This works only on files that have been
Xcopied at least once before and will not work on un-Xcopied files.

When Xcopy copies a file, it resets the original file's archive bit from
1 to 0. For more on archive bits, see DOS Attrib. Whenever you update a
file, the archive bit is set to 1. When you use the /m switch, Xcopy
copies only files with the archive bit set to 1.

The following example backs up all files onto the D disk:

xcopy *.* d: /m

ARCHIVE ONE HARD DISK TO ANOTHER

The following example copies everything from the C: drive to the D:
drive that has changed since the last time the files on C: were Xcopied.
This includes the root and all subdirectories. The /s switch is used
here in order to include all subdirectories.

xcopy c:\*.* d:\ /s /m

http://www.answers.com/topic/dos-xcopy

Yeah, Xcopy has been around since the old DOS days, and it has always
been a bit of a complex command to master, most people never saw a need
to master it, relying instead on the simpler Copy command. The options
were always explained arcanely. They'd never explain anything simply and
properly, instead relying on comp sci lingo.

Yousuf Khan
 
P

(PeteCresswell)

Per Mike S:
I use xcopy to backup large amounts of data from three different parent
folders to a 2nd hdd. It works great, but I would like to use a more
efficient method of only backing up files that are a different size,
have a different last modified date, or don't already exist, so no files
that haven't been modified since the last backup will be copied again.
Is there a DOS command similar to XCopy that will allow me to do this? I
like using DOS commands because they are fast.

I use something called SecondCopy.

Probably slower but, since it has a scheduling feature, speed is
moot - I just set it and forget it.

Also has an option to keep N superceded copies.
 
M

mm

Don't know, but xxcopy at www.xxcopy.com has an enormous set of
options, backward compatible with xcopy. It will do things you've

In case I wasn't clear XXCopy is free and runs in DOS or a DOSbox, and
I think in almost all cases it runs as fast as dos commands, except I
guess for every selection criterion, it has to do one more compare and
branch, but you can't get somethin' for nothin', right. If you use
the progress bar, that can slow things down a lot because it does two
passes, one to find out how much there is to copy and one to copy it.
He's working on starting the copy while the count is still going on,
or maybe he's finished that already. "He" is the author, who
frequently answers questions on the mailing list.

There is a clone option to xxcpy, which has all the options to make
sure the files on the copy are exactly the same as the files on the
original.

And there is also XXClone, which makes a file by file bootable copy of
the original partition. Not an image copy so that incremental
updates are easily done. Only the full copy version is free and the
other one with incremental and differential copies is 40 dollars iirc,
but other clone products don't have the ability, iiuc, to do that.

He can only restore to the original computer, it seems, while Acronis
True Value Home and some others can transfer a system to another
computer.
 

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