Hi,
Is it possible to get all the files modified in the last week (Not before or after that week) . I have tried with date range it works for me for the period of seven days , not exactly for weekly basis .
Fetching records for seven day by
As today date is 3rd June , it should fetch files modified of date range 23rd to 29th of May.
I have a weird requirement where I have to get the files from a FTP(Lets say FTP1) location and place it on my current FTP(Lets say FTP2) location. The issue is, these are daily files (in a pattern Sales_YYYYMMDD_report.csv) and are placed every day on FTP1 and my process usually runs on Monday(eg.... (2 Replies)
Hi,
I need to delete *.bad files which are 1 week old. How can I achieve that. I tried doing through below script but it deletes all the files.
find ./ -mtime +7 -exec rm *.bad {} \;
The below one works but i want to delete only files with .bad extension
find . -mtime +7 | xargs rm (2 Replies)
Hi,
My job will run every friday and it should pick only that week files.
For Ex: this 24th May job will trigger and it should pick 20,21,22,23,24.and 19th sun and 18th sat we dont have files to pick.
currently i am using the below code and it is working fine, but sometimes it is picking... (3 Replies)
I have looked around on the internet and still i am no wiser as to how to show the number of files in a directory that have been accessed this week and also that as a percentage.
Any help would be much appreciated. (5 Replies)
I have two sets of tapes for each week days.
Mon_Set_A ____________Tue_Set_B
Tue_Set_A ____________ Tue_Set_B
Wed_Set_A ___________ Wed_Set_B
Thr_Set_A ____________ Thr_Set_B
Fri_Set_A _____________ Fri_Set_B
I have script that does cold backup of database and then back up to tape.
... (1 Reply)
Hi All,
Here is a brief scenario for my requirement ..
There is a directory in FTP Server, where would files be uploaded on weekly basic.
I need to get those files which are uploaded during this week and not the files which are uploaded the previous week and download them to locale... (1 Reply)
Hello Friends
I have three dirs
1. /home/main-bkup
2. /home/bkup-week1
3. /home/bkup-week2
Now we copy backups in 1 initially, then on 1st week we copy few content of 1 into 2 and then run some scripts on that. Then in 2nd week we keep 2 untouched and do the same thing in 3.
So I... (1 Reply)