mattock / automatic-cloud-backup

19 stars 19 forks source link

Feature/wiki backup #1

Closed dzschille closed 7 years ago

dzschille commented 7 years ago

Now you can call the script with arguments. Useful when you running it with more than one cronjobs, like one for a Jira backup and one for a Confluence.

Usage: backup.sh --attachments true --timestamp true --source confluence

For more details, see README.md

dzschille commented 7 years ago

Oh no, you have added the same features at the same day in 40fddeddc27 ! :-) So i just close this. Good work!

mattock commented 7 years ago

@dzschille could you issue a second PR which implements SLEEP_SECONDS and --attachments? Those are useful features imho.

dzschille commented 7 years ago

@mattock okay, i will make a second PR. Is it okay, that i implement the --source argument also? It makes it easier to handle multiple arguments, when they all have a name. So i would like to end up with this usage: backup.sh --attachments true --timestamp true --source confluence

In the moment i have implemented --source to work with the parameters "jira", "wiki" and "confluence". "jira" is default.

mattock commented 7 years ago

@dzschille yes, feel free to improve parameter handling in the way you described. For my simplistic needs just taking the first parameter as the "source" was good enough.