WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Shell script to archieve logs in multiple log folders

  • 1.  Shell script to archieve logs in multiple log folders

    Posted 09/17/13 04:57 PM
    I know the below command

    find . -name System\*  -mtime +1 -gzip {} \;

    will work to zip the files starting with System... Can some one help me to write a scripts which will automatically give response "y" when ever it asks to confirm...  

     Also let us say there are multiple folders where this logs exist.. how can we write a for loop kind which will search all folders containing System logs and zip them in there corresponding folders.. 


  • 2.  Shell script to archieve logs in multiple log folders

    Posted 09/20/13 09:29 AM
    check this option of TAR command. It is widely used to collect files from different directorie and tar them

    www.gnu.org/software/tar/manual/tar.html...