[wp-trac] Re: [WordPress Trac] #9903: Tweak export function: make
the export planned
WordPress Trac
wp-trac at lists.automattic.com
Fri May 22 15:22:26 GMT 2009
#9903: Tweak export function: make the export planned
-------------------------+--------------------------------------------------
Reporter: csseur3 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Export | Version: 2.8
Severity: normal | Keywords: export
-------------------------+--------------------------------------------------
Comment(by csseur3):
i find a hack:
{{{
#!/bin/bash
# Settings
BACKUP_DIR=/home/toto/ftp
URL=http://www.website.com
USER=admin
PASS=passpass
COOKIES_FILE=/tmp/wp-backup.cookies
# Compute some aliases
DATE=`date +%Y-%m-%d`
BACKUP_FILE=$BACKUP_DIR/wp-backup-$DATE.xml
# Authentication
wget --keep-session-cookies --save-cookies $COOKIES_FILE --post-data
"log=$USER&pwd=$PASS&wp-submit=Connexion&testcookie=1" -O /dev/null "$URL
/wp-login.php" > /dev/null
# Get the 'export' xml file
wget -O $BACKUP_FILE --load-cookies $COOKIES_FILE "$URL/wp-
admin/export.php?author=all&submit=1&download=true"
chmod 777 $BACKUP_FILE
#end of file
}}}
but i have the login page in html format, in the xml backup file :(
what is wrong?
bye
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9903#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list