I need a .sh cron script for a LINUX CENTOS in order to clean the BK directory.
I have the following dirs:
/BK-DIR > contain the backup file ([login to view URL]) where X stands for F=Full Backup, I=Incremental Backup)
with a full weekly backup and a daily Incremental backup
----------------------
/BK-DIR/DB > contain the database backup ([login to view URL]) all database Backup are Full backup
with the daily full backup
-------------------------
I wish keep only the following files, where the date is the date written in the filename:
all files (f and I) < 1 month
all Full Backup < 2 month
all montly F backup (1 file per month) < 1 year
all yearly F backup (1 file per year) > 1 year
I'll have always:
1 yearly F backup for each year
12 montly F backup for the last 12 months
1 weekly F backup for the last 2 months
1 daily I backup for the last month
--------------
The script will use at least the following variables
1)flag test (0-1) in test mode will send an e-mail report and will write a log without deleting any file
2) files BK directory (default =/BK-DIR)
3) database BK directory (default =(/BK-DIR/DB)
4) The date limits of the incremental backup (default = 8 weeks)
5) the date limits for the weekly backup (default = 8 weeks)
6) the date limits for the montly backup (default = 12 months)
------------------------------------------
that's all
MAX Accepted bid = 30 usd
I'll test the script in test mode first and then pay.
Hi there, i am expert in bash scripting and linux server administration, plus i am ready to start and complete this project now. please award me this project
I am expert in housekeeping activity in Unix (infact I have some ready scripts which I am using and i can send you with few alteration as per your requirement. It would be in unis shell script (ksh or bash). Let me know.
Hello Sir,
I am a seasoned Linux administrator with vast scripting knowledge and I understand your project requirement fully and I am confident to complete the project to your satisfaction. Please see the PM and award the project to me.
I am expert in Unix administration and Shell Scripting. I know how to make this script with 100% accuracy. I have more than 3 years experience in Unix Shell scripting. Please give me chance to complete this script.