mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
Updated Export Docker Mongo Data (markdown)
parent
abb749d004
commit
ce931d0041
1 changed files with 5 additions and 4 deletions
|
|
@ -144,8 +144,9 @@ https://github.com/wekan/wekan/issues/659
|
|||
## Backup and restore scripts
|
||||
|
||||
Edit these to suit your own requirements - they will delete backups older than 7 days.
|
||||
|
||||
Backup Script
|
||||
'''bash
|
||||
```bash
|
||||
#!/bin/bash
|
||||
DATE=$(date +%Y-%m-%d-%H-%M)
|
||||
mkdir -p backups/$d
|
||||
|
|
@ -164,10 +165,10 @@ else
|
|||
echo "wekan-db container is not running"
|
||||
exit 1
|
||||
fi
|
||||
'''
|
||||
```
|
||||
|
||||
Restore Script
|
||||
'''bash
|
||||
```bash
|
||||
#!/bin/bash
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
|
|
@ -193,4 +194,4 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
'''
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue