gpo: Add a --generalize to the backup command
authorGarming Sam <garming@catalyst.net.nz>
Mon, 28 May 2018 23:57:26 +0000 (11:57 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 16 Aug 2018 21:42:22 +0000 (23:42 +0200)
commit07de156598b614aa0ecbbc542ff87dae43a0e08f
treeb227adedde534c6c056a7032a015754c001b69da
parent3ff695fd363b9d6cff1e17d8f4c0278e29b3b62d
gpo: Add a --generalize to the backup command

This normally prints out the entities in DTD form to be given to the restore
command with --entities. Specifying --entities during the backup conveniently
writes these entities to a file. Generalizing occurs after the standard backup
on the XML files, which will then re-write the XML file.

There are a number of files which can be further handled, including many of the
preferences XML files. This will require more annotation and parsing.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/gpo.py