mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 19:00: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
|
## Backup and restore scripts
|
||||||
|
|
||||||
Edit these to suit your own requirements - they will delete backups older than 7 days.
|
Edit these to suit your own requirements - they will delete backups older than 7 days.
|
||||||
|
|
||||||
Backup Script
|
Backup Script
|
||||||
'''bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
DATE=$(date +%Y-%m-%d-%H-%M)
|
DATE=$(date +%Y-%m-%d-%H-%M)
|
||||||
mkdir -p backups/$d
|
mkdir -p backups/$d
|
||||||
|
|
@ -164,10 +165,10 @@ else
|
||||||
echo "wekan-db container is not running"
|
echo "wekan-db container is not running"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
'''
|
```
|
||||||
|
|
||||||
Restore Script
|
Restore Script
|
||||||
'''bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if [ $# -eq 0 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
|
|
@ -193,4 +194,4 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
'''
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue