Changeset 274 in MondoRescue for trunk/mondo/mondo/mondo-makefilelist
- Timestamp:
- Jan 3, 2006, 4:15:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/mondo-makefilelist
r30 r274 99 99 done 100 100 # exclude lost+found folders, Win9x hibernation file and Win9x swap file 101 cat $TMP/filelist | sort | uniq| \101 sort $TMP/filelist -u | \ 102 102 grep -v "/win386\.swp" | grep -v "/vmmhiber\.w9x" | \ 103 103 grep -v "/hiberfil\.sys" | grep -v "/win386.swp" | grep -v "/pagefile\.sys" | \ … … 108 108 # End patch 109 109 # for i in `cat /etc/fstab | tr -s '\t' ' ' | cut -d' ' -f2` ; do 110 cat $output | grep -vx "$i/lost+found"| grep -vx $i"lost+found" > $output.MID110 grep -vx "$i/lost+found" $output | grep -vx $i"lost+found" > $output.MID 111 111 sync 112 112 mv -f $output.MID $output … … 114 114 # exclude .journal files (ext3) 115 115 for i in `cat /etc/fstab | tr -s '\t' ' ' | grep "ext3" | cut -d' ' -f2` ; do 116 cat $output | grep -vx "$i/\.journal"| grep -vx "$i\.journal" | grep -vx "$i\.autofsck" > $output.MID116 grep -vx "$i/\.journal" $output | grep -vx "$i\.journal" | grep -vx "$i\.autofsck" > $output.MID 117 117 sync 118 118 mv -f $output.MID $output 119 119 done 120 120 # exclude /var/log/pacct and Mondo's temp files 121 cat $output | grep -vx ""| grep -v "/var/log/pacct" | grep -v "tmp\.mondo\.$$" | grep -vx "/var/log/mondo-archive\.log" | grep -v "mondo\.scratch\.$$" > $output.MID121 grep -vx "" $output | grep -v "/var/log/pacct" | grep -v "tmp\.mondo\.$$" | grep -vx "/var/log/mondo-archive\.log" | grep -v "mondo\.scratch\.$$" > $output.MID 122 122 mv -f $output.MID $output 123 123 cp -f $output $TMP/filelist 124 124 # exclude /var/run/*.pid (lockfiles) 125 # cat $output | grep -vx "/var/run/[^\.]*\.pid"> $output.MID125 # grep -vx "/var/run/[^\.]*\.pid" $output > $output.MID 126 126 # mv -f $output.MID $output 127 127 } … … 180 180 for X in $EXCLUDE_PATHS ; do 181 181 if [ ! -d $X ] ; then 182 cat $TMP/filelist.blah | grep -v $X> $TMP/filelist.full182 grep -v $X $TMP/filelist.blah > $TMP/filelist.full 183 183 mv -f $TMP/filelist.full $TMP/filelist.blah 184 184 fi 185 185 done 186 cat $TMP/filelist.blah | grep -v "mojo-jojo-123"> $TMP/filelist.full186 grep -v "mojo-jojo-123" $TMP/filelist.blah > $TMP/filelist.full 187 187 [ ! -e "$TMP/filelist.full" ] && FatalError "Serious error when removing mojo jojo from fielist" 188 188 cp $TMP/filelist.full /tmp
Note:
See TracChangeset
for help on using the changeset viewer.