[Vserver] Tools to convert directory config to flat file and back

From: Björn Steinbrink <B.Steinbrink_at_gmx.de>
Date: Mon 29 May 2006 - 02:57:28 BST
Message-ID: <20060529015728.GA23867@atjola.homenet>

Hi folks,

on IRC once again someone complained about the directory based config,
and Bertl once again wondered why noone came up with some conversion
tool. I was sick of that and spend a few minutes on hacking two
small scripts for that purpose. (A bit of an offense intended *g*)
They can't do much as of now, but should work for basic usage.

Stuff they do: Care about all regular files in the configuration.

Stuff they do not do: Care about symlinks, delete files that appear in
the flat file config but not in the directory config.

The flat file layout is pretty minimalistic, just enough to get the job
done, basically it's just all files smashed together with their
filenames inserted in between.

If you want more than that, feel to enhance or rewrite them (I actually
suck at bash scripting), but please stop whining about the directory
config being inconvenient ;).

Wiki-Page (usage is "explained" there):
http://linux-vserver.org/ConfigConverters

Scripts:
http://www.13thfloor.at/~doener/vserver/tools/fromDir.sh
http://www.13thfloor.at/~doener/vserver/tools/toDir.sh

HTH
Björn
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Mon May 29 02:58:03 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 29 May 2006 - 02:58:11 BST by hypermail 2.1.8