Skip to content

Instantly share code, notes, and snippets.

@jetonr
Created April 5, 2023 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jetonr/b5d74918fa4f49dbe19f82d81f0923dd to your computer and use it in GitHub Desktop.
Save jetonr/b5d74918fa4f49dbe19f82d81f0923dd to your computer and use it in GitHub Desktop.
var modelimport = new Ai1wm.Import();
var storage = Ai1wm.Util.random(12);
var archive_name = 'REPLACE-WITH-ARCHIVE-NAME'; // Upload backup file to wp-content > ai1wm-backups and replace filename here
var options = Ai1wm.Util.form('#ai1wm-backups-form').concat({ name: 'storage', value: storage }).concat({ name: 'archive', value: archive_name});
// Set global params
modelimport.setParams(options);
// Start import
modelimport.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment