473,378 Members | 1,309 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,378 software developers and data experts.

How to archive the old files in unix box

Hi All,

I have a requirement that will that needs to archieve the old files which are 30 days old files.

Thanks,
Sreenath
Jun 7 '12 #1
5 4524
sicarie
4,677 Expert Mod 4TB
What do you mean 'archive'? Move to another system? Compress?

What have you tried? What isn't working with what you've already tried?
Jun 7 '12 #2
Luuk
1,047 Expert 1GB
If 'archieve' means 'archive'

Expand|Select|Wrap|Line Numbers
  1. find . -mtime 30 -exec zip -m archive.zip {} \;
Jun 16 '12 #3
I agree with Luuk regarding archieve the old files in unix box, Keep it up.
Jun 16 '12 #4
vakula
3
Expand|Select|Wrap|Line Numbers
  1. find . -mtime 30|xargs -d "\n" tar -czvf backup.tar.gz 
taken from <link removed>
Dec 30 '12 #5
Luuk
1,047 Expert 1GB
@vakula: This thread is 6 month old...... ?
Dec 30 '12 #6

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

Similar topics

4
by: Hal Vaughan | last post by:
I am writing out archive files using ZipOutputStream with the following code: aEntry is a global Array of ZipEntries llData is a LinkedList of the data corresponding to the the ZipEntry of the...
43
by: Dan Perl | last post by:
Here is a python feature that I would like: to be able to import modules from an archive like the jar files in Java. Maybe a regular tar file? Maybe a python specific file type, let's call it a...
1
by: labrach | last post by:
hye, I'm using Archive::Tar to create .tar.gz file on either Unix or Win32 boxes The archive is created with the class method : Archive::Tar->create_archive('test.tgz',9, @filelist); where...
6
by: JezB | last post by:
From a windows application, I want to provide an "archive" facility which will scan a specific directory and put specific files into some single "Archive file", a bit like a zip-file I guess, but...
1
by: bir | last post by:
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...
1
by: stuck1512 | last post by:
hi, i was writing an apache module & successful in retrieving archived files from a folder. i compared all file properties before retrieving but the problem is now i have to retrieve them as...
4
by: jonathan184 | last post by:
Hi I have a perl script, basically what it is suppose to do is check a folder with files. Now the files are checked using a timestamp with the command ls -l so the timestamp in this format is...
4
by: jewel87 | last post by:
Hi everyone! I am trying to compile a very simple program on UNIX, which consists of several files, each of them has a function that prints out a string of text. Then the file with the main...
0
by: darkenroyce | last post by:
Hi all, This has been racking my brains for sometime. I am trying to view CGI scripts via a web browser using tomcat5.5 as the webapp server. In both cases I'm trying to implement the webapp on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.