
Command Line
The System - AutoPilot Pro plugin adds two commands to Joomla's command line tool. Run them from the site's root folder.
The System - AutoPilot Pro plugin adds two commands to Joomla's command line tool. Run them from the site's root folder.
List snapshots
php cli/joomla.php autopilot:snapshots
php cli/joomla.php autopilot:snapshots --extension=com_events
php cli/joomla.php autopilot:snapshots --all
Without options, the restorable snapshots are listed with their number, extension, versions, date, status and size. --extension limits the list to one extension. --all also shows snapshots that cannot be restored.
Restore a snapshot
php cli/joomla.php autopilot:rollback --snapshot=62
php cli/joomla.php autopilot:rollback --snapshot=62 --files-only
php cli/joomla.php autopilot:rollback --snapshot=62 --yes
The command shows what would be restored and asks for confirmation. --files-only restores only the files. --yes skips the question, for use in scripts.
Joomla's own command starts all due scheduled tasks, including AutoPilot's. It is the one to use in a cron job:
php cli/joomla.php scheduler:run --no-interaction