roel@gigaweb.nl
The /df is not working with subdirectoties (recursive).
I use the following line:
waRmZip.wsf "C:\test" /fo:".log" /r /ca:0 /cp:"C:\Progr
am Files\7-Zip\7za.exe" /cpp:"a -tzip -mx9 OLD\$out
$in" /da:365 /dc /df /dr /v
I want to zip all logfiles in C:\Test\<number>\ TO the
C:\<number>\OLD\ directory.
Then i want to delete the files which are older than 1
year (INCLUDING the compressed files!).
However, it will NOT delete the compressed files.
My directory structure is:
C:\
C:\Test\
C:\Test\1\
C:\Test\1\OLD
C:\Test\2\
C:\Test\2\OLD
C:\Test\3\
C:\Test\3\OLD
There is also a little typo in the help documentation,
there is the "/f" option, however, it would be: "/fo"
OR "/fn".
The $YEAR and $DAY do also NOT work wihtin the "/cpp:"
switch. When i try:
/cpp:"a -tzip -mx9 OLD\$YEAR\$out $in"
It will not work!
I have a feature request for the "/dc" switch: Please
also include the days option here, so "/dc:730" will
work.
Now i can compress logfiles (and move them to the
\OLD\ directory) after 1 year AND delete the
compressed ones after 2 years.
This is especially a handy feature with Deepmetrix
Livestats XSP. It wants the logfiles from the last
year. However i need to store the logfiles from the
past 5 year by LAW (for goverment reasons :( ). But i
will compress those 4 years because i do not want to
save it raw.
Kind regards,
Roel Broersma
roel@gigaweb.nl
Logged In: NO
roel@gigaweb.nl
By the way, i tested this with the 1.7 version, (November
2005).
Kind regards,
Roel Broersma
Gigaweb
http://www.gigaweb.nl
Logged In: NO
I noticed the /dc bug in 1.7 too.
I'm running:
waRmZip.wsf "C:\WINNT\system32
\LogFiles\W3SVC3" /da:90 /dc /ca:30 /cp:"c:\Program Files\7-
Zip\7z.exe" /cpp:"a -tzip $out $in" /q
The files get zipped just fine, they just not getting
deleted.
Would be nice if this got fixed.