Help - Search - Members - Calendar
Full Version: cron job to export entries
Movable Type Community Forum > Additional Resources > Tips and Tricks
dzacharias
Can anybody help me figure out how to run a cron job to export entries from a blog and save them to a file to use as a backup?

Thanks!
almuhajabah
You may wish to check out this tutorial on creating an export blog. Basically, you create an export template and use a rebuild script to update it; you can then use a cron job to automatically run the rebuild script every so often.
markcarey
I have an export system that I use, which is based on the same "export template" concept. Instead of using the rebuild script, I use the dynamic viewer (mt-view.cgi) to render the export text files. I use a script (which can be scheduled as a cron job) to export the entries from each one of my blogs and then email them to me on a nightly basis. I plan on writing this up in detail on my site soon - I just need to polish up the script a little first.
dzacharias
almuhajabah: Thanks! That worked great, what a neat tool.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.