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

Feature/add backup script params #106

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

idelcano
Copy link
Contributor

📌 References

🎩 What is the goal?

  • Add --periodicity [PERIOD] --format [FORMAT NAME] --destination [DESTINATION_HOST]

📝 How is it being implemented?

I have modified the bash script adding the new params

💥 How can it be tested?

See --help

./backup_db.sh [NAME]
./backup_db.sh [NAME] --periodicity [PERIOD] --format [FORMAT NAME] --destination 
./backup_db.sh --periodicity [PERIOD] --format [FORMAT NAME] --destination [DESTINATION_HOST]
Valid periods: day-in-week week-in-month month-in-year
Valid formats: custom / plain
Destination: host
Example: ./backup_db.sh --periodicity day-in-week --format custom --destination gva11sucherubi.who.int
If no PERIOD is given, then a manual dump is generated with the timestamp, otherwise the given period is used in the name of the destination file.

@idelcano idelcano requested a review from ifoche May 18, 2020 08:03
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.

1 participant