Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add archive:dump command #5048

Closed
wants to merge 91 commits into from
Closed

Conversation

jabxjab
Copy link
Collaborator

@jabxjab jabxjab commented Jan 28, 2022

Related PR #5095

@jabxjab jabxjab changed the title Add archive:dump command for a Composer-managed and "web" docroot-based site Add archive:dump command Jan 31, 2022
@jabxjab jabxjab force-pushed the archive-dump-command branch 10 times, most recently from 24c311a to 37c209c Compare March 14, 2022 10:52
public function testArchiveRestoreCommand(): void
{
// @todo: remove once archive:restore command has added.
if (!class_exists('\Drush\Commands\core\ArchiveRestoreCommands')) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

archive:restore command is here - #5095

$this->filesystem = new Filesystem();
$this->archiveDir = Path::join(FsUtils::prepareBackupDir(self::ARCHIVES_DIR_NAME), self::ARCHIVE_SUBDIR_NAME);
$this->filesystem->mkdir($this->archiveDir);
register_shutdown_function([$this, 'cleanUp']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weitzman: Drush 8 had a number of convenience methods related to temporary files and directories which were automatically cleaned up in Drush's shutdown handler. These were primarily used by make and pm commands, which are no longer part of Drush. Config import and rsync used to use them in Drush 8, but do not in Drush 11. What are your thoughts on direct use of register_shutdown_function() for cleanup in light of the lack of this service in Drush 11? Is this the best practice for commands that want cleanup on termination?

@greg-1-anderson
Copy link
Member

Drush tests are green again if 11.x branch is merged in, as was done in #5148. The problem with the appveyor build started happening recently; tried to find a fix, but couldn't. Downloading the cacert works locally, the problem seems to be with the supported TLS methods in the appveyor image not being up-to-date enough to talk to the providing server as of a week or two ago.

@weitzman
Copy link
Member

Fixed in #5148

@weitzman weitzman closed this Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants