Google Answers Logo
View Question
 
Q: Linux wzzip equivalent for creating date based archives ( No Answer,   2 Comments )
Question  
Subject: Linux wzzip equivalent for creating date based archives
Category: Computers > Operating Systems
Asked by: schmerold-ga
List Price: $20.00
Posted: 21 Oct 2005 05:35 PDT
Expires: 20 Nov 2005 04:35 PST
Question ID: 583003
I need to archive files on a Centos 4 (RHEL4) server based on date.
How can I do this in a simple CRON job that runs every night.

In Windows following batch job gets this done:
  wzzip /uoprex /T12312000 BU2000
  wzzip /uoprex /t12312000 /T12312001 BU2001
  wzzip /uoprex /t12312001 /T12312002 BU2002
  wzzip /uoprex /t12312002 /T12312003 BU2003
  wzzip /uoprex /t12312003 /T12312004 BU2004
  wzzip /uoprex /t12312004 /T12312005 BU2005

I prefer zip format, though a tar archive with compression, for
example gz, is fine. I know about the -N modifier in tar, however, I
haven't found a -n (or -o for older) modifier.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Linux wzzip equivalent for creating date based archives
From: linuxguru-ga on 23 Oct 2005 01:19 PDT
 
I take it you want to archive files newer than X date/time or timestamp?
If so I have created a BASH script that does just that which I use to
compress logs at the ISP I work for.
It is written to .tar.gz but I can easily convert to make .zip files
Subject: Re: Linux wzzip equivalent for creating date based archives
From: schmerold-ga on 24 Oct 2005 20:07 PDT
 
I'm really looking to archive files between x & y, for example all
files between 1/1/03 & 7/1/04

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy