mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Updated Cloudron (markdown)
parent
a3e9632ad0
commit
816bb15661
1 changed files with 1 additions and 64 deletions
65
Cloudron.md
65
Cloudron.md
|
|
@ -16,67 +16,4 @@ You can also test the wekan installation on the demo Cloudron instance - https:/
|
||||||
|
|
||||||
# Backup
|
# Backup
|
||||||
|
|
||||||
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:
|
[Backup Cloudron](https://github.com/wekan/wekan/wiki/Backup#Cloudron)
|
||||||
|
|
||||||
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