# Variable backup

backup: {
auto_backup_now: () => Promise<void>;
create_backup: (fnm?: string) => Promise<string>;
create_csv_from_rows: (rows: any[], fnm: string) => Promise<void>;
create_pack_json: (
withEventLog?: boolean,
forSnapshot?: boolean,
) => Promise<object>;
extract: (fnm: string, dir: string, password?: string) => Promise<void>;
restore: (
fnm: string,
loadAndSaveNewPlugin: (plugin: Plugin) => void,
restore_first_user?: boolean,
password?: string,
) => Promise<string | void>;
}

#### Type Declaration

- ##### auto_backup_now: () => Promise<void>

- ##### create_backup: (fnm?: string) => Promise<string>

  Create backup

- ##### create_csv_from_rows: (rows: any[], fnm: string) => Promise<void>

- ##### create_pack_json: (withEventLog?: boolean, forSnapshot?: boolean) => Promise<object>

- ##### `Function` extract: (fnm: string, dir: string, password?: string) => Promise<void>

- ##### restore: (
  fnm: string,
  loadAndSaveNewPlugin: (plugin: Plugin) => void,
  restore_first_user?: boolean,
  password?: string,
  ) => Promise<string | void>

  Restore from backup

- Defined in models/backup.ts:1040