How to tar files through scripting?
Posted 05-12-2012 at 10:02 AM by anky.parmar1786
I am newbie in scripting. Made a script but not executing properly. I want to take tar backup of files of first 15 days of the month that is 1st to 15th May. Files are in this format -->> 01May2012 to 15May2012
The script is given below.. Please help me to make this correct
today=`date '+%d%B%Y' -d '-11days'`
cd /opt/Server.Log_11Ocg01
tar -cvf backups1to11.tar /opt/Server.Log_11Ocg01/$today
Thanks
Ankit
The script is given below.. Please help me to make this correct
today=`date '+%d%B%Y' -d '-11days'`
cd /opt/Server.Log_11Ocg01
tar -cvf backups1to11.tar /opt/Server.Log_11Ocg01/$today
Thanks
Ankit
Total Comments 0




