Hi i need a unix script to do the following tasks.
My folder structure is /home/MSTR/test and will have the following folder within it
Cache
Lookup
Source
Target
- On the Source & Target folder i have to take a copy of files older than 5 days and move(FTP) it into local machines C:\Backup drive.Then remove the old files.
- On the Cache and look up folders i have to take a copy of files older than 2 days and move(FTP) it into local machines C:\Backup drive.Then remove the old files.
- On the days before removing i have to send a mail to a mail id stating that these files from this path will be removed by tomorrow.