The script and the list of these files could be placed at: (Location is your choice, but paths may need to be changed)
/root/temp/lag-filelist.txt /root/temp/lag-backup-files.sh
#!/bin/bash # # SCRIPT: NAME_of_SCRIPT # AUTHOR: jim@willeke.com # DATE: 2010-11-17 T_VER=1.1A # Script Version Number # REV: 1.1.A (Valid are A, B, D, T, Q, and P) # (For Alpha, Beta, Dev, Test, QA, and Production) # # PLATFORM: (SPECIFY: AIX, HP-UX, Linux, OpenBSD, Solaris, other flavor, # or Not platform dependent) # # REQUIREMENTS: If this script has requirements that need to be noted, this # is the place to spell those requirements in detail. # # EXAMPLE: OpenSSH is required for this shell script to work. # # PURPOSE: Give a clear, and if necessary, long, description of the # purpose of the shell script. This will also help you stay # focused on the task at hand. # # REV LIST: # DATE: DATE_of_REVISION # BY: AUTHOR_of_MODIFICATION # MODIFICATION: Describe what was modified, new features, etc-- # # # set -n # Uncomment to check script syntax, without execution. # # NOTE: Do not forget to put the # comment back in or # # the shell script will never execute! # set -x # Uncomment to debug this shell script # ########################################################## # DEFINE FILES AND VARIABLES HERE ########################################################## THIS_SCRIPT=$(basename $0) INFILE=./lag-filelist.txt OUTFILE=/tmp/test.tar ########################################################## # DEFINE FUNCTIONS HERE ########################################################## function tarfiles { touch nofile tar -cvf /tmp/test.tar ./nofile rm nofile cat $INFILE | while read LINE do tar -uvf /tmp/test.tar "$LINE" : done gzip "$OUTFILE" } ########################################################## # BEGINNING OF MAIN ########################################################## echo $THIS_SCRIPT echo "running function tarfiles" tarfiles ########################################################## # CLEANUP ########################################################## unset T_VER # End of script
/opt/novell/nesp/lib/webapp/images/alertbubble1.gif /opt/novell/nesp/lib/webapp/images/bg_body.jpg /opt/novell/nesp/lib/webapp/images/bg_footer.jpg /opt/novell/nesp/lib/webapp/images/bg_header.gif /opt/novell/nesp/lib/webapp/images/bg_loginboxshad.gif /opt/novell/nesp/lib/webapp/images/bg_loginboxtop.gif /opt/novell/nesp/lib/webapp/images/logo.gif /opt/novell/nesp/lib/webapp/jsp/logoutSuccess.jsp /opt/novell/nesp/lib/webapp/jsp/nidp.jsp /var/novell/errorpagesconfig/current/ErrorMessages.xml.en /var/novell/errorpagesconfig/current/ErrorPageTemplate.htm.en /var/opt/novell/tomcat5/webapps/LAGERROR/images/alertbubble.gif /var/opt/novell/tomcat5/webapps/LAGERROR/images/bg_body.jpg /var/opt/novell/tomcat5/webapps/LAGERROR/images/bg_footer.jpg /var/opt/novell/tomcat5/webapps/LAGERROR/images/bg_header.gif /var/opt/novell/tomcat5/webapps/LAGERROR/images/bg_loginbox.gif /var/opt/novell/tomcat5/webapps/LAGERROR/images/bg_loginboxrpt.gif /var/opt/novell/tomcat5/webapps/LAGERROR/images/bg_loginboxshad.gif /var/opt/novell/tomcat5/webapps/LAGERROR/images/bg_loginboxtop.gif /var/opt/novell/tomcat5/webapps/LAGERROR/images/butn_form_short-ro.gif /var/opt/novell/tomcat5/webapps/LAGERROR/images/butn_form_short.gif