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

DB backup/restore refinements #14931

Merged
merged 11 commits into from
May 4, 2024
Merged

DB backup/restore refinements #14931

merged 11 commits into from
May 4, 2024

Conversation

timkelty
Copy link
Contributor

@timkelty timkelty commented May 2, 2024

Description

#14897 tied the format set for backups (backupCommandFormat) with what is used for restoring, which is not ideal.

This PR:

  • separates backupCommandFormat from what is used for restore
  • adds --format options for db/restore and db/backup (for PG)
  • For db/restore, if no --format is passed, it will attempt to detect which pg_restore format should be used (custom, directory, tar)
  • Adds flags to the default restore command to allow postgres dumps to work (including Craft Cloud).
  • Adds some allowances so the path for db/restore can be a directory, which is applicable for pg_restore.

# Conflicts:
#	src/console/controllers/DbController.php
#	src/db/pgsql/Schema.php
@brandonkelly brandonkelly changed the base branch from 4.x to 4.10 May 2, 2024 22:05
@brandonkelly brandonkelly merged commit 208a6b2 into 4.10 May 4, 2024
@brandonkelly brandonkelly deleted the bugfix/db-backup-restore branch May 4, 2024 17:31
@ezawadzki
Copy link

You make my day 💯 Thank you

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.

3 participants