![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] [<<]Thread[>>]
Number : 4041 Date : 2003-03-14 Author : Garry Deane Subject : Re: Convert PKZIP <=> XXCOPY Size(KB) : 2
--- In xxcopy@yahoogroups.com, "George Slone" wrote: > Well first maybe I should break down the PKZIP line: > > PKZIP -a -ex -P -r: Long and short of it backup saving > directory information as well as sub-directorys > > F:\xpbackup\BackupI.zip: The name of the .ZIP file to make. > would have no bearing on XXCOPY I assume. > > @A:\Ilist.txt: Text file of what to backup. For example: > > *.DAT > *.DOC > \Notes\data > \My Documents > *.zip > etc.. > etc.. > > I noticed there was a /ex switch but I didn't > see anything for a include. the Ilist.txt file is an > include list and has nothing to do with the drive letter. > > -x%A:\ilistex.txt: (used a % and not a @ as it mucked up > the line) Text file of what not to backup. For example: Ah sorry, I thought that the @ syntax looked like an include list but my ancient version of PKZip treats that as "generate a list file" hence my references to /Fo & /FM. Unfortunately one of the few things that Xxcopy is sadly missing is the use of an include list file or multiple source directories. It does however allow for multiple include filespecs with the /IN parameter. So you can do something like the following which will copy all *.dat, *.doc, *.zip: xxcopy c:\ f:\xpbackup\ /bu /in*.dat /in*.doc /in*.zip If this is a long list, you can put all the /in.. commands (plus other commands) in a command file and reference that using /CF but you're still restricted to filename templates e.g. xxcopy c:\ f:\xpbackup\ /bu /cfa:\ilist.txt where ilist.txt has /in*.dat /in*.doc /in*.zip etc etc To also process "\My Documents" and "\notes\data", you need to repeat the xxcopy command for each source base directory e.g. xxcopy c:\ f:\xpbackup\ /bu /in*.dat /in*.doc /in*.zip xxcopy "c:\*\My Documents\" f:\xpbackup\ /bu xxcopy c:\notes\data\ f:\xpbackup\ /bu Since the /bu command skips copying files with the same time, you don't end up copying files twice but it does means separate commands and sets of output. The exclude file list works as previously advised but is much more versatile than the /IN option. You can specify exlusion filename templates, multiple directories and wild-wild directory templates which have wildcards in the path and file templates. Your existing exclusion file list looks as it will work fine as is. You may even be able to achieve what you want using just the exclusion templates. Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.