mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Updated Export from Wekan Sandstorm grain .zip file (markdown)
parent
c7cef43b38
commit
3a5a1ad41b
1 changed files with 4 additions and 0 deletions
|
|
@ -107,6 +107,10 @@ do
|
||||||
done
|
done
|
||||||
rm $tmp_file
|
rm $tmp_file
|
||||||
```
|
```
|
||||||
|
It's also possible to restore JSON files like described [at stackoverflow](https://stackoverflow.com/questions/11255630/how-to-export-all-collection-in-mongodb) this way, but because userIDs etc can be different, there is no mapping to other users, so you may need to change JSON files some way:
|
||||||
|
```
|
||||||
|
for file in *.json; do c=${file#*exp_yourdbname_}; c=${c%.json}; mongoimport --db yourdbname --collection "${c}" --file "${file}"; done
|
||||||
|
```
|
||||||
|
|
||||||
## 12) Save attachments to files
|
## 12) Save attachments to files
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue