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 erase_old_deployments and run it during upgrades #86

Open
pbchase opened this issue Aug 1, 2023 · 0 comments
Open

Add erase_old_deployments and run it during upgrades #86

pbchase opened this issue Aug 1, 2023 · 0 comments

Comments

@pbchase
Copy link
Contributor

pbchase commented Aug 1, 2023

Add function, erase_old_deployments, to
upgrade.py. It should erase the "-previous" directories and the directories that are not suffixed with "-previous" separately. For each group it should search for directories that match the pattern env.backup_project_full_path*. It should keep N of each such directory where N is a passed parameter. N should default to 3.

Call this new function with a target directory of env.upload_target_backup_dir

It is important that we call this function late in the upgrade process to assure the process has worked as well as can be assured.

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

No branches or pull requests

1 participant