Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 25-06-2016, 21:20   #1
Registered User

Join Date: Dec 2009
Location: aboard Akka, currently in San Francisco Bay
Boat: Stevens Custom 50
Posts: 70
Recover deleted track?

I accidentally deleted a track and wish I hadn't. Is there any way to recover that track?
__________________

__________________
Akka is offline   Reply With Quote
Old 26-06-2016, 00:14   #2
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 300
Re: Recover deleted track?

If you didn't restart "O" to often afterwards you can.

In the same directory/folder as the config-file (press ? button to find) there are 6 navobj files: navobj.xml, navobj.xml.1, navobj.xml.2 ......
  1. First copy these files to a save place.
  2. Then rename "navobj.xml.5" into "navobj.xml".
  3. start "O" and check if your track is there, if yes export your track stop O and replace all xmlfiles by the copies you saved before. Start O and import the track. If no, sorry sail the track again

__________________

__________________
Navigation is know where you are and what to do to get where you want.
But also: Know where you don't want to be and what to do to don't get there.
rooiedirk is offline   Reply With Quote
Old 26-06-2016, 11:26   #3
Registered User

Join Date: Dec 2009
Location: aboard Akka, currently in San Francisco Bay
Boat: Stevens Custom 50
Posts: 70
Re: Recover deleted track?

Thanks! Is navobj.xml.5 the most recent backup, or the oldest? I'm asking because I may have created the track between closings of O.

Also, is this documented in the Help file? If so, where? If not, why not? I'd be happy to write this up if you like.
__________________
Akka is offline   Reply With Quote
Old 26-06-2016, 12:31   #4
Registered User

Join Date: Oct 2014
Posts: 177
Re: Recover deleted track?

Quote:
Originally Posted by Akka View Post
Thanks! Is navobj.xml.5 the most recent backup, or the oldest? I'm asking because I may have created the track between closings of O.

Also, is this documented in the Help file? If so, where? If not, why not? I'd be happy to write this up if you like.
The oldest is navobj.xml.5.

More information may be found at the OpenCPN.org website:

Navigation Data Backup | Official OpenCPN Homepage


Paul
__________________
.Paul. is offline   Reply With Quote
Old 26-06-2016, 12:49   #5
Senior Cruiser

Cruisers Forum Supporter

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 17,314
Re: Recover deleted track?

If the track was in a file, try normal recovery tools for files. Do not delete nor write anything to the drive meanwhile.

b.
__________________
barnakiel is offline   Reply With Quote
Old 26-06-2016, 19:30   #6
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,369
Re: Recover deleted track?

Akka
http://opencpn.org/ocpn/Adv_Navigation_Data_Backup

You could become familiar with opencpn.org search under user docs. We need good editors so your offer is much appreciated. Please do help with this task!
__________________
rgleason is online now   Reply With Quote
Old 27-06-2016, 03:03   #7
Registered User

Join Date: Jan 2010
Location: Amsterdam/on board in Asia
Boat: Double-ended steel sloop, 39ft, ALK
Posts: 12
Re: Recover deleted track?

I tried the fix from RooieDirk to recover lost tracks. First saved the .xml files to a new folder. Then before changing the name of navobj.xml.5 deleted navobj.xml.
Did not recover the lost track this way but recent new Routes were lost after I put the old saved .xml files back in place. Any suggestions?
__________________
Zeilzwerver is offline   Reply With Quote
Old 27-06-2016, 03:21   #8
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,758
Re: Recover deleted track?

As you have saved all the navobj files, try navobj.xml1 - this is the most recent one.
xml5 is the sixth generation (xml(0) --> xml5)

More: The xml files are user readable. Open it with a decent editor like Notepad++, not with the Windows onboard Notepad, and you can cherrypick routes and tracks and copy them back into the actual xml file.
But be sure what you are doing! Always with a back-up at hand.
__________________
bcn is offline   Reply With Quote
Old 27-06-2016, 04:02   #9
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
Re: Recover deleted track?

If you have no luck with xml files you might have another choice to look in your opencpn.log file for lines like that:
Quote:
LOGBOOK: 2016-06-27 07:34:11 UTC OFF: Lat 52.49628 Lon 9.83351 COG 2.41000 SOG 0.37 kn
Such lines are written each half an hour in the log.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 30-06-2016, 21:11   #10
Registered User

Join Date: Jan 2010
Location: Amsterdam/on board in Asia
Boat: Double-ended steel sloop, 39ft, ALK
Posts: 12
Re: Recover deleted track?

BCN and Gerhard,
Tried your suggestions and learned something again but no luck in retrieving the track. OpenCPN really crashed while I was reorganizing tracks and the ones I was working on completely disappeared. Nothing to do about it.
Thanks for your help!
__________________

__________________
Zeilzwerver is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted Track Nexus 7 RECOVERY Denise Bowes Our Community 0 14-08-2013 21:21
Help Needed, What Is the Cause and How to Recover it? Xland Construction, Maintenance & Refit 18 21-10-2012 21:48
Want To Buy: Strong track or Batt cars with Track thesparrow Classifieds Archive 1 25-12-2011 13:29



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 20:28.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.