Skip to content

DB backup/restore refinements#14931

Merged
brandonkelly merged 11 commits into4.10from
bugfix/db-backup-restore
May 4, 2024
Merged

DB backup/restore refinements#14931
brandonkelly merged 11 commits into4.10from
bugfix/db-backup-restore

Conversation

@timkelty
Copy link
Copy Markdown
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.

timkelty added 3 commits May 2, 2024 15:15
# 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
Copy Markdown

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