473,320 Members | 2,189 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,320 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 4519
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.