walkhighlands

Check this board for announcements about new features and content on Walkhighlands

Backing up Walk Reports

Backing up Walk Reports


Postby emjga » Tue Jul 06, 2021 7:53 pm

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
emjga
Walker
 
Posts: 64
Munros:113   Corbetts:9
Fionas:2   
Sub 2000:3   Hewitts:3
Joined: Jun 2, 2020

Re: Backing up Walk Reports

Postby Mal Grey » Tue Jul 06, 2021 8:43 pm

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.
User avatar
Mal Grey
Wanderer
 
Posts: 4617
Munros:113   Corbetts:23
Fionas:12   
Sub 2000:9   Hewitts:116
Wainwrights:71   Islands:6
Joined: Dec 1, 2011
Location: Surrey, probably in a canoe! www.wildernessisastateofmind.co.uk

Re: Backing up Walk Reports

Postby kmai1961 » Thu Jul 08, 2021 10:01 am

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: )
kmai1961
Wanderer
 
Posts: 634
Munros:282   Corbetts:189
Fionas:91   Donalds:65
Sub 2000:51   Hewitts:30
Wainwrights:39   Islands:24
Joined: Aug 12, 2012
Location: nr Glasgow

Re: Backing up Walk Reports

Postby emjga » Thu Jul 08, 2021 6:00 pm

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.
emjga
Walker
 
Posts: 64
Munros:113   Corbetts:9
Fionas:2   
Sub 2000:3   Hewitts:3
Joined: Jun 2, 2020




Can you help support Walkhighlands?


Our forum is free from adverts - your generosity keeps it running.
Can you help support Walkhighlands and this community by donating by direct debit?



Return to Walkhighlands announcements and feedback

Who is online

Users browsing this forum: No registered users and 4 guests