Comments (5)
You should be able to backup and restore your database using mysqldump
from bookstack.
@need4swede Currently you data will be within the running container. Take care as that data will likely be destroyed if the container is destroyed (Which can occur even if you just take the compose stack down).
As mentioned by @buckybytes, you'd ideally perform a mysqldump of the existing data for safe-keeping, and re-import.
Alternatively, as long as you still use the same exact docker image, you could copy out the /var/lib/mysql
files from inside the container. Ideally use a mysqldump though.
I've got a video here on taking a mysqldump via a docker compose stack.
See the "Creating Backups" and "Restoring a from a backup" sections.
It's using the linuxserver mariadb image, but the steps should be pretty similar.
from bookstack.
Bless you, Dan. Worked like a charm!
Now excuse me while I document the backup process in my BookStackApp.
Cheers!
from bookstack.
Hi @need4swede,
You are mounting the /config
path for the database, which is commonly a linxuserver image thing, but not commonly used for other container images like the one you're using which is not a linuxserver-managed image.
Your compose stack indicates you're using this image.
Based upon the guidance there, I think you need to mount to the /var/lib/mysql
container path instead for that image.
from bookstack.
Your compose stack indicates you're using this image. Based upon the guidance there, I think you need to mount to the
/var/lib/mysql
container path instead for that image.
Thank you for the reply! This seems to work and I can see my database folder now being used. Pardon my ignorance, but is there a way for me to transfer my existing database from the Docker volume to my host - or will I lose all my existing data and have to start fresh?
from bookstack.
Related Issues (20)
- Request for help using the Logical Theme system to enable logging in via url parameters HOT 2
- Redirect from /books to /shelves HOT 2
- WYSIWYG: Table cell format handling clears more styles than expected
- Re: Xdebug: [Step Debug] Time-out connecting to debugging client HOT 2
- Error when empty trash HOT 3
- Update `LDAP_USER_FILTER` env option to use new placeholder format HOT 1
- Sticky URL parameters (for keeping iframe/theme settings when navigating) HOT 1
- CVE-2024-2961 HOT 1
- Advise about the payment feature HOT 1
- Object embeds in the editor show image toolbar button
- Drag and drop of attachments into editor fails for Chrome
- Add x86/x86_64 assembly to list of supported languages in code blocks HOT 2
- Request variables blockquotes HOT 4
- SQLSTATE[42S22]: Column not found: 1054 Unknown column 'system_name' in 'where clause' HOT 7
- Customization -> custom html style applies not on settings page HOT 2
- SMTP Email configuration generate error HOT 5
- "419 Page Expired" When user inactive in login page then try to login and configured Single Sign On mode HOT 2
- Uploaded mp4 video doesn't play in Safari HOT 3
- Bookstack restore unable to restore DB HOT 4
- Edit tags/Attachments as an Option in Actions menu. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bookstack.