If a request is done with remote api ( https://myserver:10000/virtual-server/remote.cgi?program=list-scheduled-... ) using just mulitline I've got that : 13070871005635: Domains: ...some-domain... Include sub-servers: Yes Destination: /home/me/backup/daily.bak Features: All Format: Single archive file Incremental: No Enabled: Yes ...
but if I used json or xml (https://myserver:10000/virtual-server/remote.cgi?program=list-scheduled-...) the first value element in the list will be empty like that: { "status" : "success", "data" : [ { "value" : "", "name" : "13070871005635" }, { "name" : "13070871595741:", "values" : { "features" : [ "All" ], "include_sub-servers" : [ "Yes" ], ...
Comments
Submitted by JamieCameron on Wed, 03/21/2012 - 23:13 Comment #1
Thanks for pointing this out ... this is a bug in the output format of list-scheduled-backups , which I'll fix in the next release.
Submitted by cybervirax on Thu, 03/22/2012 - 10:13 Comment #2
maybe you've got a quick fix?
Submitted by cybervirax on Thu, 03/22/2012 - 10:36 Comment #3
another question, your multiline format is really similar YAML specifications, why don't you use it to simplify conversion between format?
ps : virtualmin is a really good solution, thank you Mister Cameron
Submitted by JamieCameron on Thu, 03/22/2012 - 11:21 Comment #4
The quick fix is to edit the file
/usr/share/webmin/virtual-server/list-scheduled-backups.pl
and change line 77 to :print "$s->{'id'}\n";
Submitted by cybervirax on Thu, 03/22/2012 - 15:09 Comment #5
thx, work perfectely!
Submitted by Issues on Thu, 04/05/2012 - 15:17 Comment #6
Automatically closed -- issue fixed for 2 weeks with no activity.