question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to restore database backup of source wekan to snap wekan ?

See original GitHub issue

Impacted version: 0.60

Server Setup Information: Local

  • Operating System: Ubuntu-16.04
  • Deployment Method: snap
  • Node Version: 4.8.1
  • MongoDB Version: 3.2.18
  • ROOT_URL(Is there a subfolder?): http://localhost:8001 (no)

How to restore database backup of source wekan to snap wekan ?:

  • I have running wekan from source code but now i want to move it to wekan snap.
  • Already have an backup of mongodb database

Below steps i tried in snap wekan to restore database backup

  1. sudo /snap/wekan/current/bin/mongo
  2. mongorestore --db admin /home/snap/Documents/wekan/DB/admin

Output : 2018-02-09T17:11:11.619+0530 E QUERY [thread1] SyntaxError: missing ; before statement @(shell):1:15

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
xet7commented, Feb 9, 2018

You can check on what port snap mongo is running with:

sudo netstat -plant | grep mongo

Then connect to that port, for example:

mongo --port 27019

Then look what database name wekan database has:

show dbs

If you want to delete database sometime, not needed usually:

use wekan
db.dropDatabase();

Anyway when you know database name, you can exit mongodb:

exit

Then restore database to inside snap mongo:

mongorestore --drop --port 27019 --db wekan
0reactions
xet7commented, Oct 29, 2021

@petkodimitrov1986

Snap MongoDB is at port 27019. You restored to wrong port.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Backup · wekan/wekan Wiki - GitHub
The Open Source kanban (built with Meteor). ... Restore Wekan Snap ... This does backup of Wekan+RocketChat snap databases and php website ...
Read more >
Backup and restore - wekan/wekan-snap GitHub Wiki
You need to first create one backup, otherwise this command shows error. To list existing backups in default directory, as normal user: $...
Read more >
Wekan Reviews - 2022 - Slashdot
Backups of Wekan database using mongodump are required once per day. Data can be lost due to bugs, updates, card deletions, harddrive crashes,...
Read more >
WeKan ® — Open-Source kanban
Required: At least Daily Backups of WeKan ® database with mongodump. Bugs, updates, users deleting list or card, harddrive full, harddrive crash etc...
Read more >
.future-snap/snapcraft.yaml · master · plmshift / plmkan · GitLab
Open in Web IDE Toggle dropdown. Open in Web IDE. Quickly and easily edit multiple files in your project. Edit. Edit this file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found