cesium-ml / cesium_web

Cesium Web Frontend
Other
42 stars 18 forks source link

Backup and Restore Capability #246

Open profjsb opened 6 years ago

profjsb commented 6 years ago

Build a command line script to backup whatever is needed to restore the state of cesium web on another machine.

$ cd cesium_web
$ ./cesium_backup -f backup_date_all.tgz --users all --projects all
$ ./cesium_backup -f backup_date_myproj.tgz --users jsb --projects myprog

This will save user, project, feature, etc. info from the DB as well as the associated data of any featuresets, models, etc.

Then, on another running instance of cesium web

$ cd cesium_web
$ ./cesium_restore -f backup_date_all.tgz --overwrite True
  * Restored all.
$ ./cesium_restore -f backup_date_myproj.tgz --overwrite False
  * Refused to overwrite user = jsb (User exists)
  * Refused to overwrite proj = myprog (Project by that name already exists)