#!/bin/sh#!/bin/sh# PoltawerKozak linux , 2006.05.08# $Id BackUpL4-1.0.0.sh $ TMP=/tmpDirListFiles=$TMP/ListFilesif [ -d $DirListFiles ]; then rm -fr $DirListFilesfiif [ -f $TMP/BackUpL4-`date +%F`.tar* ]; then rm -fr $TMP/BackUpL4-`date +%F`.tar*fimkdir -p $DirListFilescd $DirListFilesListFile=`mktemp -p $DirListFiles`find / -type f -cmin +5 -cmin -1440 >> "$ListFile"find / -type l -cmin +5 -cmin -1440 >> "$ListFile"split -l 200 "$ListFile" SplitList.cd $TMPrm "$ListFile"touch BackUpL4-`date +%F`.tarfor i in "$DirListFiles"/SplitList.* ; do tar -rvfBackUpL4-`date +%F`.tar `cat "$i" | tr "\012" " "` ; donerm -fR $DirListFiles bzip2 -zf9 BackUpL4-`date +%F`.tar clearecho " "echo "Created successful BackUp level 4"echo " "