The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Leap year K-shell script p1jls02 UNIX for Dummies Questions & Answers 2 2 Weeks Ago 12:13 PM
Day of month and year to mmddyyyy ajgwin Shell Programming and Scripting 2 05-19-2008 09:23 AM
How do I set my date in a unix script to 'new month Agent704 UNIX for Dummies Questions & Answers 1 01-27-2008 10:58 AM
how to get the last month and year in UNIX Vijay06 UNIX for Advanced & Expert Users 2 08-18-2007 05:25 AM
Execute a script on 4 week of the month tbdo88 Shell Programming and Scripting 1 09-30-2006 09:08 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-07-2006
Registered User
 

Join Date: Sep 2006
Posts: 1
Script for tar and zip based on month & year

Hi Friends,

I'm doing on script which finds all the files with time stamp and makes them tar and zip, based on their respective month&year. for instance "mar-2004.tar.zip" will contain all the files which was created/accessed/modified on mar-2004. like this the entire filesystem should be taken for backup. please help me doing this. scripts from ksh or perl are most welcome.

Thankx in advance

Tuxfello
Reply With Quote
Forum Sponsor
  #2  
Old 09-07-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
Tuxfello, why don't you show us where you've gotten so far? And if you haven't started, do so.

Your problem is basically a 'find files on basis of mtime and act on them' kind of problem. Do a search on the site for using find (infact you'll find info on that in the FAQs).
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0