按计划从 drupal 收集数据并导出到 CSV
我们有一个 drupal 站点,我们希望以多个 CSV 文件的形式从该站点导出数据。我知道 Views 模块插件使此过程成为一个非常简单的按需过程,但我们正在寻找的是一种通过 cron 自动化此过程的方法。
最有可能的是,我们最终必须编写一个独立的 PHP 文件(然后可以使用 cron 访问来完成此操作),或者编写一个自定义模块。
我首先想检查以确保目前还没有一个或一组模块可以完成我们正在寻找的任务。您将如何完成这个问题?
最终结果是这些 csv 文件将驻留在服务器上,供其他服务拾取并导入到自己的系统中,或者通过 rsync 或类似的东西进行分发。
最佳实践建议也将不胜感激!
We have a drupal site and we wish to export data from this site in the form of several CSV files. I'm aware of the Views module addins that make this a very simple process on demand, but what we're looking for is a way to automate this process through cron.
Most likely, we'll end up having to either write a standalone PHP file we can then access with cron to complete this action, or a custom module.
I first wanted to check to ensure that there isn't already a module or set of modules out there that will do what we're looking for. How would you accomplish this issue?
The end result is that these csv files will reside on the server for other services to pick up and import into their own systems or be distributed with rsync or something similar.
Best practices suggestions would also be appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想使用 cron,
wget
或执行您需要的所有操作的脚本的路径。if you want to do with cron,
wget <path to your cvs view>
or the path of a script which does everything you need, in your crontab.