> On Mon, 30 Apr 2001, Eric Wolzak wrote: > > > Hello all. > > Allthough it probably isn't a tremendous memory saver, I couldn't > > accept that busybox tar didn't function due to the problem with the > > exclude files. > > Every bit - and byte - counts. =) > > > Tested with ash (from oxygen , linux 2.4.3 Busybox 0.50) > > Look very carefully for changes in size at backing up !! > > Smaller packets are mostly not more compressed but less > > complete ; ) > > Look VERY carefully. Tar shouldn't have any real affect on the size of the > compressed package; it just sort of glues files together. (I think. > Someone correct me if I'm wrong please.) That is exactly what I ment, if you see a change in size and didn't change anything in the package than there is a problem with the script I didn't notice. I one time had a problem with a script due to not printable charachter in one of the *.list files. > <Begin Snipping> > > # start of the real changes: > > # cat all include and exclude files except the one from > > # PACKAGE to temp file EXCLUDE2 > > If we're doing all of them, we may want to rename that variable to > something a little less likely to confuse. Unless we're trying for the > Unmaintainable Code standard, and then these comments are much too > accurate. =) You are right about that. I hoped that I didn't need it but I 'm not that firm with pipes and that kind of things. anything temporary sounding would be good :) > > cat /var/lib/lrpkg/*.list /var/lib/lrpkg/*.links >$EXCLUDE2 > > I may very well be confused here about the purpose of what this does, but > is there a reason we want to cat ALL of the list and links files for the > image here? I would think that we'd want: I explain what the original script does. it moves $PACKAGE.list out of the directory /var/lib/lrpkg to /tmp - then it put the contents of all other_package.list and all exclude lists and the busybox.links in one file. Now you have a "list" of all the files except the ones we are going to backup. This list is original in $EXCLUDE The next thing is move the $PACKAGE.list back to its original place. Then tar the file with $PACKAGE.list ( now copied to $INCLUDE) but exclude all files backed up with the other packages this are the ones in $EXCLUDE >>So you have excluded almost the whole disk and now you add the files you want to include>>. This is the reason why files that are shared by different packages might not be backed up at all. At both backups they are excluded. The problem that occured was that if I have /etc in the exclude file than busybox tar didn't include /etc/ppp allthough it was in the include file. What I changed was that I left in the exclude list only those file that would have been included otherwise So to come back to the example. If /etc/ppp is the only one that is included than, there are only files which path starts with /etc/ppp/.... stay in the exclude file. >>include the files in the include path and only exclude those that are in the include path but are allready part of another package.>> > cat /var/lib/lrpkg/$PACKAGE.list /var/lib/lrpkg/$PACKAGE.links >$EXCLUDE2 > > Please smack me if I'm wrong. I'm writing e-mail at 5am, which is only > worse than 4am. =) smack ;) > > echo -n "Creating $PACKAGE.lrp Please wait: " > > > > ticker > > > > cd / > > cd / Here you are more awake at 5 am as I am at 1 am, I copied it with a mouse from a terminalwindow, and probably have copied a line twice > Is there any reason there are two of these? I sort of figured that one > would be enough, but I'm getting the feeling I'm missing something here. > No you're not missing anything, I have one to much ( a cd/ that is ) > -- > George Metz > Commercial Routing Engineer > [EMAIL PROTECTED] BTW when do you sleep ;) Eric Wolzak _______________________________________________ Leaf-devel mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/leaf-devel