Yes. Finally, we used the "backup tool" url instead of the export tool url, and scheduled it via a cron job running daily.
Using the export tool, exporting some of the repositories from their root paths (/) worked ok at export time, but gave errors when used for bootstrap later. I came to learn about using the backup tool instead of the export tool after reading http://www.nabble.com/Wget-to-backup-content-not-working.-tf3349154.html #a9317638 The script that we scheduled via cron was along the lines of : #!/bin/sh /usr/local/bin/wget --http-user=superuser --http-passwd=superuser -O /users/myaccount/wgetoutput.xml "http://localhost:8080/magnoliaAuthor/.magnolia/pages/developmentUtils?c ommand=backup&templates=on¶graphs=on&dialogs=on&website=on&users=on& groups=on&roles=on&secure=on&rootdir=WEB-INF%2Fbootstrap%2Fbackup" /usr/local/bin/wget --http-user=superuser --http-passwd=superuser -O /usr/local/apache-tomcat-5.5.23/webapps/magnoliaAuthor/WEB-INF/bootstrap /backup/dms/dms.mycontent.xml "http://localhost:8080/magnoliaAuthor/.magnolia/pages/export.html?mgnlRe pository=dms&mgnlPath=/mycontent&mgnlKeepVersions=false&mgnlFormat=false &ext=.xml&command=exportxml&exportxml=Export" -The first wget call uses the "backup tool" and saves the xml to files underneath <webapp>/WEB-INF/bootstrap/backup -The second wget call uses the "export tool" to export DMS stuff under the path /mycontent and saves it to <webapp>/WEB-INF/bootstrap/backup/dms/dms.mycontent.xml David -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 16, 2007 10:53 AM To: [email protected] Subject: Re: [magnolia-user] probems with the export in magnolia 3.0.2 David Can this command be used in cron job to do automated backups of sites? Thanks Amir > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 08, 2007 11:05 AM > To: [email protected] > Subject: Re: [magnolia-user] probems with the export in magnolia 3.0.2 > > Hi, Anja, > > On Magnolia 3.0.2 we were able to export repository data > using wget and the export tool. The command line was like : > > wget --http-user=superuser --http-passwd=superuser -O > ./website.xml > "http://localhost:8080/magnoliaAuthor/.magnolia/pages/export.h > tml?mgnlRe > pository=website&mgnlPath=/&mgnlKeepVersions=false&mgnlFormat= false&ext= > .xml&command=exportxml&exportxml=Export" > > > David ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ---------------------------------------------------------------- ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ----------------------------------------------------------------
