Archiving Files and Folders

  • Thread starter Thread starter Bomber
  • Start date Start date
B

Bomber

Hi all,

is there a way to archive all files and folders from a folder/subfolders
based on the date it was last modified and archiving it to a totally new
drive, but keeping the directory structure ?

cheers,

Adam
 
Lots and lots of them. Xcopy will do this:
XCOPY source destination /D:m-d-y /S
will do just what you ask, but there may be details you did not ask about,
such as copyng only files with the archive attribute set, and either
preserving the attribute /A, or changing it /M. You can include empty
directories /E. Run
xcopy /? | more
and look over your options. If you have the NT Resource Kit, Robocopy has
even more options. And there are third party and freeware tools that do
things like this as well, such as xxcopy.
 
Thanks Greg,

the command you listed XCOPY source destination /D:m-d-y /S , does that move
or just copy ?

cheers,

Adam
 
Hi all,

is there a way to archive all files and folders from a folder/subfolders
based on the date it was last modified and archiving it to a totally new
drive, but keeping the directory structure ?

cheers,

Adam

What i do is use WinZip (or RAR) to compress folders and files into a single
file, while retaining the path information. You can then delete the
original files, if you want to archive, rather than just make a back up
copy.

If you want to restore the files, the original folder structure will be
regenerated.

I find that this is easier than using xcopy, and it conserves space, and
doesn't really take any longer.
 
Thanks Jay,

are there any size limitations on these winzip or rar files ?

Also, how do I winzip based on a date last used etc ? And can I move the
files to a zip ?

cheers,

Adam

 
Jay said:
What i do is use WinZip (or RAR) to compress folders and files into a single
file, while retaining the path information. You can then delete the
original files, if you want to archive, rather than just make a back up
copy.

If you want to restore the files, the original folder structure will be
regenerated.

I find that this is easier than using xcopy, and it conserves space, and
doesn't really take any longer.

You can use my Zipping program on my website for free, or use WinZip and pay for
it. Your choice.
 
That just copies. Do you want to move? Robocopy can purge successfully moved
files. Or, if you consistently set the archive bit of files that you copy
with an xcopy switch, you can then execute a del from the source
subdirectories, and /aa to delete files ready for archiving, or /a-a to
delete files "not ready" for archiving. You would have to be mindful of any
interaction with backup software which can also set the archive bit.
 
Back
Top