That would produce a file named larger_than_100M.list which it has the information you are requesting, formatted the way you posted.
Quote:
This folder together will put in tar.gz and split into 50MB each. This is run by crontab.
Not quite sure what you want to tar. The above command only provides a list of files that are 100MB and larger, and the date that the query was performed.
That would produce a file named larger_than_100M.list which it has the information you are requesting, formatted the way you posted.
Not quite sure what you want to tar. The above command only provides a list of files that are 100MB and larger, and the date that the query was performed.
The result that list in larger_than_100M.list file, i want to tar all this folder and split. That is what i want to do.
I tell you what. How about showing you some examples of how to tar and split and then you try by yourself? If you have trouble you can continue posting here.
This is how you tar and gzip a directory
That creates a file named filename.tar.gz
Now you can divide it with a command properly named split
That would create as many files named filename.tar.gz.part-aa, filename.tar.gz.part-ab, filename.tar.gz.part-ac, 50MB at a time.
I suggest you do some test with something small first, you can always change the -b 50m to another size
I know how to tar and split. But maybe you not read earlier post. I already told you, i want this bash script on crontab. It's mean it collect all data by running deamon.
If by manual, of course it's more easier. I can put all directory this have size more 100MB. And split them after put in tar.gz.
This script i want to put on cron and it's will run everyday. Seek new folder that have size more 100MB.
Our system have using that upload movie, document. The movie usually more that 100MB size.
The system also create directory and subdirectory. So we want to transfer big folder to other server that located on DC B, far away from our DC A.
Both DC connected using point-to-point fiber optic. It's mean not going to cloud or what ever public line. More than to dedicated line.
If i want to run manually, i will not asking expert here to do scripting. We have so many subdir. If using manually, it waste time. We want to reduce time, seek manually big folder.
---------- Post updated 05-21-14 at 09:14 PM ---------- Previous update was 05-20-14 at 10:59 PM ----------
From list folder below:
How to grep a date May 21 in bash script? List is directory. And i want to transfer using scp protocol.
We want to call a parameter file (.txt) where my application read dynamic values when the job is triggered, one of such values are below:
abc.txt
------------------
Code:
line1
line2
line3
$$EDWS_DATE_INSERT=08-27-2019
line4
$$EDWS_PREV_DATE_INSERT=08-26-2019
I am trying to write a... (3 Replies)
Hi All,
I'm trying to find a file which is created on current day.... I searched in unix.com and i found, below command.
find /land/ -mtime -1 -type f -print | grep "FF_Member_STG.dat"
The command checks if the file with name "FF_Member_STG.dat" is created today then exit else proceed.
... (3 Replies)
Hi,
I'm trying to get the name of a file that has the current date in the name.
The filename is on the form A<current date>01.DC, for example A2012110501.DC
I have this script so far
date +%y%m%d
D=$(date +%y%m%d)
N=A20$D
echo $N
N2={$N}01.DC
echo $N2
And gets the following... (12 Replies)
Hello gurus,
I am hoping someone can help me with the required code/script to make this work. I have the following file with records starting at line 4:
NETW~US60~000000000013220694~002~~IT~USD~2.24~20110201~99991231~01~01~20101104~... (4 Replies)
Normally we can use %s to find out the time in second since 1970.
But in my ksh, this format option is not available.
Example- date +%s
1268103151
above script command won't work in ksh. Can you guys provide its equivalent ? (3 Replies)
Hi All,
I want to find the time diffrence between currnt time and "abc.txt" file create time.
I have solve that but if the abc.txt file created last month then is there any process to find the difftent?
Exp:
Create time of abc.txt is "Apr 14 06:48"
and currect date is "May 17 23:47".... (1 Reply)
hii all.
I have to get the date of the 7th day past from the current date.
if i give the current date as sep 3 then i must get the date as 27th of august.
can we get the values from the "cal" command.
cal | awk '{print $2}' will this type of command work.
actually my need is
if today is... (17 Replies)
I need to extract the date part from the file name (20080221 in this ex) and compare it with the current date and delete it, if it is a past date.
$file = exp_ABCD4_T-2584780_upto_20080221.dmp.Z
really appreciate any help.
thanks
mkneni (4 Replies)
Hai,
i have one directory contains 100 files .each file name like xvb_dateformat.i want find which file names are xvb_lessthan or equal to currentdate.
any one give the solution.
regards (4 Replies)