Hi,
I need some linux scripts on CentOS that will do the following:
A) Database
1. Backup a Firebird database
2. Restore it in a temp location to check its consistency
3. Zip it
4. Upload it to ftp server
5. Upload it to Amazon S3 account
If there is a failure in step 1), 2), 3), 4) or 5) retry N times then send email if there is still a problem.
B) Logs
I have a log directory which grows fast. I need scripts to clean it up. All logs are kept in same folder. Script needs to:
1. Zip all log files
2. Upload it to ftp server
3. Upload it to Amazon S3 account
4. Delete logs older than N days or N hours
Again if there is a failure email needs to be sent.
C) I will need help setting CRON jobs that might run every 15 minutes, every 30 minutes, every hour, every 4 hours every 12 hours or every day at certain time.
The Firebird username and password needs to be read from file. You don't need to know about Firebird backup and restore, I will give you examples.
## Deliverables
About Amazon S3:
There are some tools like [login to view URL]
I am not sure if they will work on CentOS or what dependencies they might have. I will need help/instructions to install whatever 3rd party package we will be working with.
In general, I am open to suggestion for S3 backup functionality if the above is not a good solution or you prefer another tool.