Ok haven't had a chance to check the exception. Thanks On Mar 7, 2015 12:34 PM, "Andy Seaborne" <[email protected]> wrote:
> On 07/03/15 10:46, Andy Seaborne wrote: > >> On 06/03/15 22:31, Trevor Donaldson wrote: >> >>> so not seeing data. I may have done something incorrect. >>> >> >> No, you're not ... :-( >> >> Is there an exception in log file? >> >> ------------------ >> [2015-03-07 10:20:49] Backup INFO [11] **** Exception in backup >> com.hp.hpl.jena.tdb.transaction.TDBTransactionException: Not in a >> transaction >> ------------------ >> >> >> Recorded as JENA-895 >> >> (either there has been a regression in the code or all the development >> work happen to find a timing hole whereby it can work if the backup >> happens very early in a server's life) >> >> Andy >> > > Assuming you were getting the same exception as I found, this should be > fixed. I've done a "deploy" as well so built development binaries are up to > date. > > Andy > > > >> >>> 1. Backed up dataset >>> 2. Deleted all files in ($FUSEKI_HOME/run/databases/myapp) >>> 3. tdbloader --loc=$FUSEKI_HOME/run/databases/myapp backup.nq.gz >>> 4. restarted fuseki. >>> 5. went to count triples on fuseki web page. Counts are all 0. >>> >>> >>> On Fri, Mar 6, 2015 at 3:28 PM, Andy Seaborne <[email protected]> wrote: >>> >>> On 06/03/15 18:10, Trevor Donaldson wrote: >>>> >>>> Thanks Andy the link is very helpful. I am assuming that in order to >>>>> reimport I would use tdbloader. Is this right? >>>>> >>>>> >>>> yes - backups are compressed n-quads, .nq.gz >>>> >>>> Andy >>>> >>>> >>>> >>>> On Fri, Mar 6, 2015 at 12:47 PM, Andy Seaborne <[email protected]> >>>>> wrote: >>>>> >>>>> On 06/03/15 16:29, Trevor Donaldson wrote: >>>>> >>>>>> >>>>>> Hi all, >>>>>> >>>>>>> >>>>>>> I was wondering if there is a way to programmatically backup >>>>>>> the tdb >>>>>>> instance? I found this question >>>>>>> http://webcache.googleusercontent.com/search? >>>>>>> q=cache:0whNmMD65OcJ:answers.semanticweb.com/questions/ >>>>>>> 24740/how-do-you-create-and-restore-backups-with-fuseki- >>>>>>> and-tdb+&cd=3&hl=en&ct=clnk&gl=us >>>>>>> but it is referencing fuseki 1 (i.e. --mgtPort=port). Is there >>>>>>> another >>>>>>> way >>>>>>> that a backup and a restore should be handled in fuseki2? >>>>>>> >>>>>>> Thanks in advance, >>>>>>> >>>>>>> Trevor >>>>>>> >>>>>>> >>>>>>> See staging documentation: >>>>>>> >>>>>> >>>>>> http://jena.staging.apache.org/documentation/fuseki2/fuseki-server- >>>>>> protocol.html >>>>>> >>>>>> POST /$/backup/{name} >>>>>> >>>>>> The admin interface has to be on the same port (WAR file >>>>>> deployment) and >>>>>> it's under /$/, protected by Shiro (this is what the UI does when you >>>>>> press >>>>>> the backup button) >>>>>> >>>>>> There was a very recent bug fix (a few days ago) - the backup was >>>>>> written >>>>>> to the wrong place. The latest build, it's written to >>>>>> $FUSEKI_BASE/backups/ >>>>>> >>>>>> Andy >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>> >>> >> >
