mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Updated Backup (markdown)
parent
816bb15661
commit
79b259d48e
1 changed files with 69 additions and 0 deletions
69
Backup.md
69
Backup.md
|
|
@ -578,3 +578,72 @@ makesRestore $1
|
||||||
Download Wekan grain with arrow down download button to .zip file. You can restore it later.
|
Download Wekan grain with arrow down download button to .zip file. You can restore it later.
|
||||||
|
|
||||||
[Export data from Wekan Sandstorm grain .zip file](https://github.com/wekan/wekan/wiki/Export-from-Wekan-Sandstorm-grain-.zip-file)
|
[Export data from Wekan Sandstorm grain .zip file](https://github.com/wekan/wekan/wiki/Export-from-Wekan-Sandstorm-grain-.zip-file)
|
||||||
|
|
||||||
|
## <a name="cloudron">Cloudron
|
||||||
|
|
||||||
|
If those [Backup](https://github.com/wekan/wekan/wiki/Backup) ways are not easily found at Cloudron, one way is to install [Redash](https://redash.io/) and then backup this way:
|
||||||
|
|
||||||
|
Redash works with this kind of queries:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"collection": "accountSettings",
|
||||||
|
"query": {
|
||||||
|
"type": 1
|
||||||
|
},
|
||||||
|
"fields": {
|
||||||
|
"_id": 1,
|
||||||
|
"booleanValue": 1,
|
||||||
|
"createdAt": 1,
|
||||||
|
"modifiedAt": 1,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
So:
|
||||||
|
|
||||||
|
1) Create this kind of query:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"collection": "boards"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Later when you modify query, you can remove text like boards with double-click-with-mouse and delete-key-at-keyboard (or select characters with mouse and delete-key-at-keyboard), and then click collection/table >> button to insert name of next collection/table.
|
||||||
|
|
||||||
|
2) Click Save
|
||||||
|
|
||||||
|
3) Click Execute. This will cache query for use with REST API.
|
||||||
|
|
||||||
|
4) Click at right top [...] => Show API key
|
||||||
|
|
||||||
|
It looks like this:
|
||||||
|
|
||||||
|
https://redash.example.com/api/queries/1/results.json?api_key=...
|
||||||
|
|
||||||
|
5) Only when saving first collection/table, Save API key to text file script like this `dl.sh`
|
||||||
|
```
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Example: ./dl.sh boards
|
||||||
|
|
||||||
|
export APIKEY=https://redash.example.com/api/queries/1/results.json?api_key=...
|
||||||
|
|
||||||
|
curl -o $1.json $APIKEY
|
||||||
|
```
|
||||||
|
|
||||||
|
6) Run save script like:
|
||||||
|
```
|
||||||
|
./dl.sh boards
|
||||||
|
```
|
||||||
|
Note: 1) Save 2) Execute => webbrowser can give this kind of timeout,
|
||||||
|
but downloading with API script still works:
|
||||||
|
|
||||||
|
> wekan
|
||||||
|
> Error running query: failed communicating with server. Please check your Internet connection and try again.
|
||||||
|
|
||||||
|
7) Repeat steps 1-4 and 6 for every collection/table like boards,cards, etc
|
||||||
|
|
||||||
|
8) Remove from downloaded .json files extra query related data, so that it is similar like [any other Wekan database backup JSON files](https://github.com/wekan/wekan/wiki/Export-from-Wekan-Sandstorm-grain-.zip-file)
|
||||||
|
|
||||||
|
9) Insert data to some other Wekan install with nosqlbooster like mentioned at page [Backup](https://github.com/wekan/wekan/wiki/Backup)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue