techuser2009
MIS
Hi All,
I am new to unix shell scripting. I want to write a script that can move my log files daily from my servers about 5 of them to a storage server. The script should move only today's log files from a log dir to the storage server. I want the script to run as a cron job from one main server. This script should be able to connect to all the other servers using ssh and then scp the files to my storage server.
On the storage server the log files should be moved to different directories that I have created on the storage server. Before moving the files to these directories the script should first delete all the log files already in the dir which are older than 30 days.
thanks
I am new to unix shell scripting. I want to write a script that can move my log files daily from my servers about 5 of them to a storage server. The script should move only today's log files from a log dir to the storage server. I want the script to run as a cron job from one main server. This script should be able to connect to all the other servers using ssh and then scp the files to my storage server.
On the storage server the log files should be moved to different directories that I have created on the storage server. Before moving the files to these directories the script should first delete all the log files already in the dir which are older than 30 days.
thanks