Hello Bao C. Ha, Tom Eastep, list > How do I back up the setup and configuration > before I update a software package? Basically, > I have the shorewall 1.2.5 lrp package from the > Bering image. I would like to go to shorewall > 1.2.6. Backing up the etc.lrp does not work, > as no Shorewall-related info is saved.
the shorewall configuration files are stored in /etc/shorewall and are backed up with the backup of the shorewall.lrp If you replace it with a new shorewall update, you loose of course the settings. So as I understand your question correctly :how do i save my original settings into the next generation of shorewall. an update between shorewall versions is not yet implemented, but should be good idea. In that case you would run a kind of diff programm and update your version leafing the settings as they were. I send a copy of this message to Tom Eastep As long as this doesn't exists, there are two situations 1. in the new version there is only a change in the routines, and functions. The old format of the configuration files is still valid. n that case copy your old shorewall.lrp to /tmp tar -xzf the shorewall.lrp and copy the configuration files zones, rules etc. that you changed to /etc/shorewall/ after that backup shorewall. 2. The format of the configuration files has changed. depending of the complexity of your rules, it is mostly the best to just copy the contents and edit the changed parameters. Or make a small script to automate this in pseudo code read a line from old paremeter file if it is a comment print the line to the new file other wise edit the line (f.e sed) to make a new format line print the new line to the new file fi close the new file store the new file in /etc/shorewall/ replacing the old one backup shorewall. Most changes in shorewall among updates are corrections in the programm part of the package or extending the parameter part f.e. make it possible to use a variable for a value. So it should be mostly backward compatible. Hopes this will help you Hello Tom Is it possible to tell at the announcement of new versions. 1) can we still use the old configuration files 2) if not, which one has to be updated. 3) perhaps even a diff file, for situations like introducing a new variable int the parameter file thanks for the great package ! Eric Wolzak http://leaf.sf.net/devel/ericw bering http://leaf.sf.net/devel/jnilo _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
