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

allow us to not delete files #14

Merged
merged 2 commits into from
Dec 2, 2020
Merged

allow us to not delete files #14

merged 2 commits into from
Dec 2, 2020

Conversation

jmahowald
Copy link
Contributor

It was surprising for some devs on our team to have the remote files deleted when they cleaned up locally and I figured it wouldn't hurt to give the option to turn it off.

Copy link
Member

@fabiob fabiob left a comment

Choose a reason for hiding this comment

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

I like the approach of exposing the sync flags so the user can change them. If you can change the variable name to S3_SYNC_FLAGS, I'll merge it.

watch Outdated
echo "backup failed" 1>&2
return 1
fi
}

function final_backup {
echo "backup $LOCAL => $REMOTE"
while ! $AWS s3 sync "$LOCAL" "$REMOTE" --delete; do
while ! $AWS s3 sync "$LOCAL" "$REMOTE" $DELETE_FLAG; do
Copy link
Member

Choose a reason for hiding this comment

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

I think S3_SYNC_FLAGS is a better name.

@mirsal mirsal mentioned this pull request Dec 2, 2020
watch Outdated Show resolved Hide resolved
watch Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Co-authored-by: Mirsal <mirsal@mirsal.fr>
@fabiob fabiob merged commit 082e518 into elementar:master Dec 2, 2020
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