Last modified March 31, 2025
addToQueue
This function lets you add an item to the queue.
Parameter name | Value | Description | Possible values | Example |
---|---|---|---|---|
type | Integer | REQUIRED The queue type | 1 = backup 2 = restore 4 = download 8 = reindex 64 = export 128 = extract |
--type=1 |
id | Integer | REQUIRED The object ID to add to queue. | --id=40 |
|
snapshot_path | Integer | REQUIRED The snapshot (absolute) path to import. | --snapshot_path=/PATH/TO/SNAPSHOT |
|
panel_type | Integer | REQUIRED The panel type to export. | 1 = cPanel 2 = DirectAdmin; |
--panel_type=1 |
Example Call JetBackup WP-CLI
wp jetbackup addToQueue --type=2 --id=2
wp jetbackup addToQueue --type=64 --id=5 --panel_type=1
wp jetbackup addToQueue --type=2 --snapshot_path="/home/user/public_html/mybackup.tar.gz"
{} Added to queue!
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.