Legend
Forum
Unread topics or posts
Topic
Unread posts
Locked
Announcement
Forum
Unread topics or posts
Topic
Unread posts
Locked
Announcement
Forums > Tips & Tricks
Backups using wget on windows
| Author | Message |
|---|---|
|
ben |
Score: 1
I'm trying to implement the backup scheme from this thread: http://www.toodledo.com/forums/3/2227/-12359/back-up-your-toodledo-data-with-wget.html#end with this code: @rem export Toodledo XML set filename=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%-toodledo @rem sign in and get cookie wget --quiet --no-check-certificate --save-cookies=cookies.txt --post-data "email=name@domain.com&&pass=password" https://www.toodledo.com/signin.php > null.txt @rem get tasks, notes, activity history pause wget -O %filename%-tasks.xml --quiet --load-cookies=cookies.txt http://www.toodledo.com/tools/xml.php > null.txt wget -O %filename%-notes.csv --quiet --load-cookies=cookies.txt https://www.toodledo.com/tools/csv_notes.php > null.txt wget -O %filename%-activity.html --quiet --load-cookies=cookies.txt https://www.toodledo.com/activity.php > null.txt @rem get rid of the cookies and null files del cookies.txt del null.txt I'm getting a cookie just fine but after that wget is not able to cause the exports as intended, I end up with a file containing the main screen php code and an export file with 0 bytes. My intent is to back up on a nightly basis as I am experimenting with a new smartphone application and don't want to dork my data up. Help please! Thanks, -Ben This message was edited Aug 19, 2011. |
|
ben |
Score: 1
Is anyone automatically backing up their Toodledo data? If so, how? Thanks, -Ben |
|
tbaker |
Score: -1
Hi Guys, I wrote a script to facilitate this about a year ago. It could obviously use some cleanup and optimization. It covers offsite storage and compression. http://www.toodledo.com/forums/3/5479/-29113/automating-toodledo-backups.html |
|
ben |
Score: 1
Posted by tbaker: Hi Guys, I wrote a script to facilitate this about a year ago. It could obviously use some cleanup and optimization. It covers offsite storage and compression. http://www.toodledo.com/forums/3/5479/-29113/automating-toodledo-backups.html Does this work with the new and improved updated toodledo site, in other words, are you still using it today? Thanks, -Ben |
|
tbaker |
Score: 1
Hi Ben, The script still works. basically, it replicates a login to get the session ID cookie. Once the session ID cookie has been retrieved, it is used to ask for the XML import/export Download page. The XML is then compressed and moved to another target folder. I've played with the idea of writing a simple Windows Console utility that will do the same thing with a much easier configuration than having to manually edit a script file. I'll put it back on my task list and maybe work on it sometime :) |
|
aszabo_1325423439 |
Score: -1
Yes it works with a few changes: one must have the switch '--keep-session-cookies' in both wget statements, otherwise the second wget saves only signin.php. |
To participate in these forums, you must be signed in.