Repository navigation
Releases
v1.2.0
Interactive wizard: php artisan clone
A guided menu for pull, backup, restore and list. Pick what to do, then answer a few questions with the arrow keys:
- Pull lists your configured remotes, or you can type
[user@]host:/path. - Restore lists your archives with their source, database, size and whether they include storage.
- Shared questions cover storage, migrations, maintenance mode, the safety backup and sanitizers.
Before it runs, the wizard prints the equivalent command (for example php artisan clone:pull production --ssh-prompt). Pull and restore always ask for a final confirmation. The wizard runs the same clone:* commands, so both behave exactly the same.
SSH passwords and key passphrases: clone:pull --ssh-prompt
You can also set it per remote with ssh_prompt in config or CLONE_{NAME}_SSH_PROMPT=true in .env. clone:pull opens one SSH connection in your terminal, where you type the password or passphrase once. The remote backup, the download and the cleanup all reuse that connection (SSH connection sharing). It needs an interactive terminal, so don't use it in cron or CI.
Other changes
laravel/promptsis now a declared dependency. Laravel already installs it.
This package was written entirely by Claude (Anthropic).
v1.1.0
clone:pull
- Remotes in
.env: list names inCLONE_REMOTESand setCLONE_{NAME}_HOST,_PATH,_USER,_PORT,_PHP,_IDENTITY_FILE,_SSH_CONFIG,_CONNECTION,_TRANSFER,_SSH_OPTIONS. Works withconfig:cache. - Default remote: the
remoteargument is now optional. It usesCLONE_REMOTE, or the only configured remote. - Uses your
~/.ssh/config: user, port and key are only passed when set, so~/.ssh/configdecides them otherwise. Host aliases work, and so doeshost:/pathwithout a user. - New
--ssh-config=option (ssh -F).--port,--phpand--identitynow also override named remotes.
If you published config/clone.php before this release, see the README for the two lines to add to it so .env remotes are picked up.
Docs
- The README installs from Packagist (
composer require phpawcom/laravel-clone).
This package was written entirely by Claude (Anthropic).
v1.0.0
First release of Laravel Clone.
clone:backup,clone:restore,clone:pullandclone:listArtisan commands- MySQL / MariaDB, PostgreSQL and SQLite
- Optional storage backup and restore, sanitizers, retention, and big-table data exclusion
- Supports PHP 8.2+ and Laravel 11, 12 and 13
See the README for the installation guide.
This package was written entirely by Claude (Anthropic).