Repository navigation
v0.34.3
Faster imports and database save points. Nothing changes in how you use agent-local.
Fixes
import --copy clones instead of copying. The docroot, uploads included, is now cloned on APFS, so it takes almost no time and almost no extra disk. A 1.2 GB site copied in with about 4 MB of new disk use. A byte-for-byte copy used to cost about 5 s and the same again in disk per GB. Across volumes, where cloning is not possible, it falls back to a plain copy as before.
The URL rewrite scans the database once per old host, not twice. Imports, db import, domain changes and doctor --fix ran search-replace separately for https:// and http://, and each pass reads every table. One //old-host pass now covers both, so the "urls" step takes about half as long. It also rewrites protocol-relative links (//old-host/...), which the old passes left pointing at the old site.
Save points are faster to write. The automatic snapshot taken before db import, restore, reset, delete and checkpoint is now compressed at gzip's fastest level, which runs about five times faster. Compression was the slow part, so on a large database that step drops from roughly 26 s per GB of SQL to roughly 5 s. Snapshot files come out about a third bigger, and only the last 5 automatic ones per site are kept.
Install
brew install jefrontv/tap/agent-local
# or, no Homebrew:
curl -fsSL https://raw.githubusercontent.com/jefrontv/agent-local/main/install.sh | bash