Page 1 of 1

Backing up Walk Reports

PostPosted: Tue Jul 06, 2021 7:53 pm
by emjga
In the very unlikely event of Walk Highlands having a catastrophic failure
All your Walk Blogs would be lost for ever.

Is there a way to try and backup the Personal Walk Blogs ?

If you click on the Email / Print it only gives you a little bit of the info.
Does not include the all important Data / miles (KM)

Any thoughts

Matt

Re: Backing up Walk Reports

PostPosted: Tue Jul 06, 2021 8:43 pm
by Mal Grey
One option might simply to go to Edit your report, and copy the whole thing before pasting into word or similar.
I think this will only work if you use links to photos hosted elsewhere though, not uploaded directly. Also not sure if formatting will remain.
I generally host my images on Flickr, and write reports in Word, so I already have a copy saved, it just doesn’t show images, only the link urls.

Re: Backing up Walk Reports

PostPosted: Thu Jul 08, 2021 10:01 am
by kmai1961
There's also a "print view" icon in the top right corner whilst you're editing or even just looking at a report. You can use this icon to either print a hard copy, or to PDF. (I keep telling myself that I'm going to start doing this -- the PDF option -- every time I post a report, but I haven't yet :roll: :lol: ).

Like Mal, I also write my reports elsewhere (Word) before posting them and inserting the pics (also from Flickr for me). So I've got copies of the text, and the photos, but they're filed separately. If I were to print PDFs using the print icon, I'd have an archived copy of the entire thing. (Overkill, anyone? :lol: )

Re: Backing up Walk Reports

PostPosted: Thu Jul 08, 2021 6:00 pm
by emjga
Folks

Good idea's on doing the report in Word

I did find another option and that is using Wget
You may not have it installed on a Windows machine by default.

https://eternallybored.org/misc/wget/

Then a simple batch file to download the Walk Blogs

Change emjga to your username

Code: Select all
@echo off
REM Use wget to get the main index page with the walk blogs
C:\Users\uosa\Desktop\wget_test\wget.exe https://www.walkhighlands.co.uk/blogs/emjga

REM The Wget index page ëmjga" has string "viewtopic"
REM It has delinator = at token 4
REM This gives viewtopic ID number plus some other text
REM Saves in a file called tmpfile

for /f "tokens=4 delims==" %%a in ('"type emjga|findstr viewtopic" ') do echo %%a >> tmpfile

REM Takes the tmpfile and delinator & at token 1
REM Then echo out the http url to file viewtopic_url

for /f "tokens=1 delims=&" %%a in ('"type tmpfile" ') do echo https://www.walkhighlands.co.uk/Forum/viewtopic.php?f=9^&t=%%a >> viewtopic_url

REM delete the tmpfile
del tmpfile

REM Now dump the Walk Blogs but keep the .html so you can open with your browser
REM take the URL from the file viewtopic_url
REM -E adds .html
REM -nc No Clobber if the file exists all ready

C:\Users\uosa\Desktop\wget_test\wget.exe -i viewtopic_url -E -nc

REM Now tidy up
del emjga
del viewtopic_url



You then have a load of HTML files which you can open with your browser
For some reason there is a whole load of stuff at the start of the HTML file
At the end you should find your walk report.

It is a crude way of doing it but seems to work for me at least.