<div dir="ltr">Hi Stoiko<div><br></div><div>It's already what i used  actually, but i need to go deeper on each group and "grep" the members, ad used to be a little bit slow.</div><div>So what i'm trying to do is to have a quick dump of all the config in a file and then do a md5sum comparision whith a previous config file.</div><div>Basically i would like to dump each group only if the file mentioned above was changed.</div><div><br></div><div>I'm agree that i'm going to use sql.</div><div><br></div><div>thx </div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 10, 2019 at 6:33 PM Stoiko Ivanov <<a href="mailto:s.ivanov@proxmox.com">s.ivanov@proxmox.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
You can use `pmgsh` for that (or curl via pmgproxy [0])<br>
With that you get json back and can iterate further:<br>
```<br>
pmgsh get /config/ruledb/what<br>
```<br>
pmgsh also has an interactive mode where you can look around with<br>
ls/get<br>
<br>
apart from that you can also go through the postgres directly - however<br>
PMGs schema might need some encoding and I don't know whether postgres<br>
has builtins for that.<br>
<br>
hope this helps!<br>
stoiko<br>
<br>
<br>
[0] on port 8006) -the instructions for PVE should work for PMG as well:<br>
<a href="https://pve.proxmox.com/wiki/Proxmox_VE_API" rel="noreferrer" target="_blank">https://pve.proxmox.com/wiki/Proxmox_VE_API</a><br>
<br>
<br>
<br>
On Fri, 10 May 2019 18:18:35 +0200<br>
Davide Bozzelli <<a href="mailto:davide.bozzelli@gmail.com" target="_blank">davide.bozzelli@gmail.com</a>> wrote:<br>
<br>
> Hi<br>
> <br>
> Is there a simple way to dump like pmgdb dump ALL the objects ? i<br>
> mean not only the ones used in rules.<br>
> <br>
> Thx<br>
> <br>
<br>
<br>
_______________________________________________<br>
pmg-devel mailing list<br>
<a href="mailto:pmg-devel@pve.proxmox.com" target="_blank">pmg-devel@pve.proxmox.com</a><br>
<a href="https://pve.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel" rel="noreferrer" target="_blank">https://pve.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Got problems with Windows? - ReBooT<br>Got problems with Linux? - Be RooT </div>