有没有办法从 jasperserver 备份生成的 pdf 报告文件?
我已经运行 jaspperserver (部署在 tomcat 6 上)有一段时间了。在我的每日报告文件夹中,有大量文件。
我想知道是否有办法备份它们并将它们从该文件夹中删除,以便我再次拥有一个空的每日报告文件夹。
I've been running jaspperserver (deployed on tomcat 6) for a while now. In my daily report folder I have quite a huge number of files.
I'm wondering if there is a way to back them up and delete them from that folder so that I have an empty daily report folder again.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过 jasperserver 的 Web 服务接口在脚本中下载它们,然后将它们保存在某个地方。然后在服务器上删除它们。
或者您可以只备份 jasperserver 数据库(其中包含 pdf 文件),然后删除它们。但随后您必须进行恢复才能稍后下载它们..如果您升级了 jasperserver 版本,这可能会成为问题。
您甚至可以在数据库副本之外运行一个单独的 jasper 服务器......
You could download them via the webservice interface of jasperserver in a script and then safe them somewhere. And then delete them on the server.
Or you could just take a backup of the jasperserver database (which contains the pdf files) and delete them afterwards. But then you would have to do a restore to download them later.. and that might be a problem if you upgraded jasperserver version.
You could even just run a separate jasper server off the database copy...