This project performs backup or restore of Convertigo Fullsync Databases.
It is aimed for Cloud or Docker Convertigo Server.
It is based on Daniele Bailo's couchdb-dump bash script.
The project must be deployed on the target Convertigo Server.
For more technical informations : documentation
-
In your Convertigo Studio click on
to import a project in the treeview -
In the import wizard
paste the text below into the
Project remote URLfield:Usage Click the copy button at the end of the line To contribute lib_FullSyncImportExport=https://github.com/convertigo/c8oprj-lib-fullsync-backup.git:branch=8.0.0.0To simply use lib_FullSyncImportExport=https://github.com/convertigo/c8oprj-lib-fullsync-backup/archive/8.0.0.0.zip -
Click the
Finishbutton. This will automatically import the lib_FullSyncImportExport project
The project expects a secret project symbol named ${lib_FullSyncImportExport.secretkey.secret} on the target Convertigo server.
Each sequence also exposes a request variable named secret.
At runtime, the received variable is compared with the symbol value.
If the value is missing or invalid, the sequence returns a 403 Forbidden error structure.
Internal sequence calls already propagate the secret variable automatically.
Creates a backup file for one FullSync database and can optionally compress it as .gz.
variables
| name | comment |
|---|---|
| cdb_gz | Set to 1 or true to create a compressed .gz backup file. |
| cdb_name | Name of the FullSync database to back up. |
| reset_db_folder | Set to 1 or true to clear the backup folder before creating the new backup. |
| secret | Secret value that must match the lib_FullSyncImportExport.secretkey.secret project symbol. |
Backs up all available FullSync databases into the server backup folder.
variables
| name | comment |
|---|---|
| cdb_gz | Set to 1 or true to create compressed .gz backup files. |
| secret | Secret value that must match the lib_FullSyncImportExport.secretkey.secret project symbol. |
Lists the backup files currently available in the backup folder.
variables
| name | comment |
|---|---|
| secret | Secret value that must match the lib_FullSyncImportExport.secretkey.secret project symbol. |
Clears and recreates the backup folder before a new backup run.
variables
| name | comment |
|---|---|
| reset_db_folder | Set to 1 or true to delete and recreate the backup folder. |
| secret | Secret value that must match the lib_FullSyncImportExport.secretkey.secret project symbol. |
Restores one FullSync database from a JSON or GZip backup file.
variables
| name | comment |
|---|---|
| cdb_file | Uploaded backup file to restore, in JSON or GZip format. |
| cdb_name | Name of the FullSync database to restore. |
| secret | Secret value that must match the lib_FullSyncImportExport.secretkey.secret project symbol. |
Loads the FullSync/CouchDB server settings from Convertigo server properties and stores them in HTTP session.
variables
| name | comment |
|---|---|
| secret | Secret value that must match the lib_FullSyncImportExport.secretkey.secret project symbol. |
Detects whether an input file is already JSON or GZip and decompresses it when required.
variables
| name | comment |
|---|---|
| secret | Secret value that must match the lib_FullSyncImportExport.secretkey.secret project symbol. |
| sourceFile | Source backup file path, in JSON or GZip format. |
| targetFile | Target JSON file path used when the source file must be decompressed. |
