Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.
Describe the bug
When running archive restore it tries to unpack the archive file into the /tmp directory even if the $TMP environment variable set to somewhere else
archive has been removed from drush9 so maintainers arent actively working on it. we would review a PR on it though. I dont know offhand how restore chooses unpack location.
Describe the bug When running archive restore it tries to unpack the archive file into the /tmp directory even if the $TMP environment variable set to somewhere else
To Reproduce
cd /var/www/drupal; export TMP=/var/www/temp ; sudo -E /root/.composer/vendor/bin/drush archive-restore ltg.tar
Expected behavior I'd expect that the tar file is unpacked under /var/www/temp
Actual behavior
Unable to untar ltg.tar. Unable to extract site archive tarball to /tmp/drush_tmp_1544612915_5c10ec332c3b1.
Workaround couldn't find any
System Configuration
Additional information Add any other context about the problem here.