473,385 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Archiving the older files

11
I want to archive files from two different folders say 1 and 2 into new folders, i want to create zip file of the files from 1 and 2 with age greater then 1 day. And also need to check the disk space whether this can be placed in the drive or not.
Feb 15 '07 #1
1 1267
KevinADC
4,059 Expert 2GB
For zipping:

http://search.cpan.org/author/ADAMK/...Archive/Zip.pm

use the stat() function to check the age of the file:

http://perldoc.perl.org/functions/stat.html

or one of the file test operators (-M I think):

http://perldoc.perl.org/functions/-X.html

and as far as checking the free space on the drive, that might be best done with a call to an operating system function that can check the drive. But there are modules for windows that can do that and probably for other operating systems as well.
Feb 15 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Mahesh | last post by:
Hi All, When I copy and paste the project and open newer solution in Visual Studio.NET that newer solution still references files of older solution (It opens the older projects files). I...
6
by: Peter | last post by:
Hello, After restoring my database I have some problems with diag.log who becomes very large. The "logretain" and "userexit" are set to "recovery" and "on" respectively. Any suggestions are...
5
by: SunSmile | last post by:
Hi, I am logging my exceptions to a word document(*.doc). After the size of word document is 5KB. I am archiving the word document to *.doc.1 Here when I am archiving the word document to...
2
by: Jim | last post by:
I work in the environmental industry and we have large gcms instruments that aquire raw data to an attached computer. These computers are networked, and have shared folders so the data can be...
4
by: Paul H | last post by:
Could some one give me some pointers on basic archiving techniques? I have developed several databases but never been faced with this issue. Here is the basic scenario.. Suppose I have the...
3
bvdet
by: bvdet | last post by:
Following is an example that may provide a solution to you: """ Function makeArchive is a wrapper for the Python class zipfile.ZipFile 'fileList' is a list of file names - full path each name...
4
by: jchen1011 | last post by:
I have a reporting database running DB2 LUW 8.2 on a RedHat Linux. It is configured to archive log files automatically. I notice that although no activities on the database, it keeps archive the...
3
by: jaeden99 | last post by:
I was wandering if nyone has a script to move files older than x days old? i've seen several to delete, but I don't want to delete. I would like to create a backup of the files first verify with...
4
by: cold1 | last post by:
From the Coldfusion 8 documentation, the process of archiving a log file seems pretty straightforward, but I can’t find the archived log files. I am running Coldfusion 8 under Apache HTTP server. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.