Skip to content

Releases

v1.2.0

Choose a tag to compare

@phpawcom phpawcom released this 02 Dec 18:43

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/prompts is now a declared dependency. Laravel already installs it.

This package was written entirely by Claude (Anthropic).

v1.1.0

Choose a tag to compare

@phpawcom phpawcom released this 02 Dec 18:28

clone:pull

  • Remotes in .env: list names in CLONE_REMOTES and set CLONE_{NAME}_HOST, _PATH, _USER, _PORT, _PHP, _IDENTITY_FILE, _SSH_CONFIG, _CONNECTION, _TRANSFER, _SSH_OPTIONS. Works with config:cache.
  • Default remote: the remote argument is now optional. It uses CLONE_REMOTE, or the only configured remote.
  • Uses your ~/.ssh/config: user, port and key are only passed when set, so ~/.ssh/config decides them otherwise. Host aliases work, and so does host:/path without a user.
  • New --ssh-config= option (ssh -F). --port, --php and --identity now 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

Choose a tag to compare

@phpawcom phpawcom released this 02 Dec 18:17

First release of Laravel Clone.

  • clone:backup, clone:restore, clone:pull and clone:list Artisan 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).