$PATH variable location for backups
It's not just editing the .env file; you also need to modify the config to make use of those options; which is part two of that article you linked to.
You could also try adding a PATH variable to your .env which includes &quot;/usr/local/bin&quot; in it.
Update:
The .env won't override an existing environment var by default. In most linux server setups this isn't a problem because the &quot;www-data&quot; or &quot;apache&quot; user doesn't have that set by default.
For MAMP, local dev or vagrant development; that path is likely set. If you want your .env settings to overwrite existing settings; change the web/index.php file to use Dotenv\Dotenv::create(CRAFT_BASE_PATH)-&gt;overload();
instead of
Dotenv\Dotenv::create(CRAFT_BASE_PATH)-&gt;load();