Created
April 5, 2023 01:09
-
-
Save jetonr/b5d74918fa4f49dbe19f82d81f0923dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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