iobroker.backitup
Version:
ioBroker.backitup allows you to backup and restore your ioBroker installation and other systems, such as databases, Zigbee, scripts and many more.
3 lines (2 loc) • 3.46 kB
JavaScript
"use strict";(self.webpackChunkiobroker_admin_component_backitup=self.webpackChunkiobroker_admin_component_backitup||[]).push([["src_Components_jsx"],{20507:(M,v,s)=>{s.r(v),s.d(v,{default:()=>F});var u=s(1810),g=s(98360),k=s(86207),y=s(37451),C=s(35665),A=s(95520),I=s(15780),S=s(32149),b=s(66474),D=s(95973),o=s.n(D),r=s(37449),B=s(85903),E=Object.getPrototypeOf,O=Reflect.get,x=(d,t,e)=>O(E(d),e,t),m=(d,t,e)=>new Promise((n,i)=>{var p=a=>{try{c(e.next(a))}catch(f){i(f)}},h=a=>{try{c(e.throw(a))}catch(f){i(f)}},c=a=>a.done?n(a.value):Promise.resolve(a.value).then(p,h);c((e=e.apply(d,t)).next())});class l extends B.A{constructor(t){super(t),this.storedAlive=this.props.alive,this.storedChecked=!1}checkConfiguration(){this.props.alive&&(this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"getSystemInfo",null).then(t=>m(this,null,function*(){let e=!1;(t==null?void 0:t.systemOS)==="docker"&&t.dockerDB===!0||(t==null?void 0:t.systemOS)!=="docker"?(this.props.data._nonSupportDockerDB=!1,e=!0):(t==null?void 0:t.systemOS)==="docker"&&t.dockerDB===!1&&(this.props.data._nonSupportDockerDB=!0,this.props.data.influxDBEnabled&&(this.props.data.influxDBEnabled=!1,e=!0),this.props.data.mySqlEnabled&&(this.props.data.mySqlEnabled=!1,e=!0),this.props.data.sqliteEnabled&&(this.props.data.sqliteEnabled=!1,e=!0),this.props.data.pgSqlEnabled&&(this.props.data.pgSqlEnabled=!1,e=!0),this.props.data.startAllRestore&&(this.props.data.startAllRestore=!1,e=!0),e&&this.props.onChange(this.props.data),this.props.data.redisType!=="remote"&&this.props.data.redisEnabled&&(this.props.data.redisType="remote",e=!0),e=!0),(t==null?void 0:t.systemOS)==="docker"?(e=!0,this.props.data._restoreIfWait=1e4):(t==null?void 0:t.systemOS)==="win"&&(e=!0,this.props.data._restoreIfWait=18e3);const n=["ccu","mySql","sqlite","pgSql","influxDB","history"];for(let i=0;i<n.length;i++)if(!this.isConfigFilled(n[i])){const p=yield this.fetchConfig(n[i],this.props.data).catch(h=>this.showError(h));e=e||p.changed}})),!this.props.data.cifsEnabled&&!this.storedChecked&&this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`,"getFileSystemInfo",null).then(t=>{t!=null&&t.diskState&&t.storage&&t.diskFree&&(this.storedChecked=!0,t.diskState==="warn"&&t.storage==="local"?this.showMessage(r.I18n.t("On the host only %s MB free space is available! Please check your system!",t.diskFree),r.I18n.t("BackItUp Information!")):t.diskState==="error"&&t.storage==="local"&&this.showMessage(r.I18n.t("On the host only %s MB free space is available! Local backups are currently not possible. Please check your system!",t.diskFree),r.I18n.t("BackItUp Information!"),"warning"))}))}componentDidMount(){return m(this,null,function*(){x(l.prototype,this,"componentDidMount").call(this),this.storedAlive&&this.checkConfiguration()})}renderItem(){return this.storedAlive!==this.props.alive&&(this.storedAlive=this.props.alive,this.storedAlive&&this.checkConfiguration()),this.renderMessage()}}l.propTypes={socket:o().object.isRequired,themeType:o().string,themeName:o().string,style:o().object,className:o().string,data:o().object.isRequired,attr:o().string,schema:o().object,onError:o().func,onChange:o().func};const j=l,F={AdapterExist:u.A,BackupNow:g.A,DetectConfig:k.A,GoogleDrive:C.A,Onedrive:A.A,Dropbox:I.A,CheckConfigInvisible:y.A,Instance:S.A,RestoreBackup:b.A,CheckAllConfigInvisible:j}}}]);
//# sourceMappingURL=src_Components_jsx.4267e220.chunk.js.map