Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

✨ Allow for specifying the S3 Storage Class #205

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

Open
Schlepptop wants to merge 14 commits into dokku:master
base: master
Choose a base branch
Loading
from Schlepptop:master

Conversation

@Schlepptop
Copy link

@Schlepptop Schlepptop commented Jul 14, 2020

Requires that dokku/docker-s3backup#12 be merged

rm -f "$SERVICE_BACKUP_ROOT/AWS_SECRET_ACCESS_KEY"
rm -f "$SERVICE_BACKUP_ROOT/AWS_DEFAULT_REGION"
rm -f "$SERVICE_BACKUP_ROOT/AWS_SIGNATURE_VERSION"
rm -f "$SERVICE_BACKUP_ROOT/ENDPOINT_URL"
Copy link
Member

@josegonzalez josegonzalez Jul 14, 2020

Choose a reason for hiding this comment

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

Why this change?

Copy link
Author

@Schlepptop Schlepptop Jul 14, 2020

Choose a reason for hiding this comment

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

Because the auth command is no longer the only one using that directory, leaving it the way it was would also delete the S3_STORAGE_CLASS.

local SERVICE_BACKUP_ROOT="$PLUGIN_DATA_ROOT/$SERVICE/backup"

mkdir "$SERVICE_BACKUP_ROOT"
mkdir -p "$SERVICE_BACKUP_ROOT"
Copy link
Member

@josegonzalez josegonzalez Jul 14, 2020

Choose a reason for hiding this comment

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

Was this necessary?

Copy link
Author

@Schlepptop Schlepptop Jul 14, 2020

Choose a reason for hiding this comment

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

Otherwise it will fail upon trying to create the dir if it already existed

README.md Outdated
postgres:backup <service> <bucket-name> [--use-iam] # creates a backup of the postgres service to an existing s3 bucket
postgres:backup-auth <service> <aws-access-key-id> <aws-secret-access-key> <aws-default-region> <aws-signature-version> <endpoint-url> # sets up authentication for backups on the postgres service
postgres:backup-deauth <service> # removes backup authentication for the postgres service
postgres:backup-s3class <service> <s> <-storage-class> # sets the S3 storage class to be used for backups on the postgres service
Copy link
Member

@josegonzalez josegonzalez Jul 14, 2020

Choose a reason for hiding this comment

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

Can you manually regenerate the readme via make README.md?

Copy link
Author

@Schlepptop Schlepptop Jul 14, 2020

Choose a reason for hiding this comment

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

That's the way it generates, I can fix the output but idk if there's an issue with the parsing or my subcommand.

common-functions Outdated
local SERVICE_BACKUP_ROOT="$PLUGIN_DATA_ROOT/$SERVICE/backup/"

mkdir -p "$SERVICE_BACKUP_ROOT"
echo "$S3_STORAGE_CLASS" >"$SERVICE_BACKUP_ROOT/S3_STORAGE_CLASS"
Copy link
Member

@josegonzalez josegonzalez Jul 14, 2020

Choose a reason for hiding this comment

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

I really need to transfer all of this to the new properties system...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@josegonzalez josegonzalez josegonzalez left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /