Created
October 21, 2016 17:50
-
-
Save lpanebr/77c8ab7abe3a6b29fed4f9d5024aeadc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -n " Use $default, daily or type a date? [yes or no] (yes default) or Daily (d): " | |
read yno | |
case $yno in | |
[nN] | No | no ) | |
echo -n " Type a date: " | |
read date | |
;; | |
[dD] | Daily | daily ) | |
echo " Using DAILY backups! " | |
date="daily" | |
;; | |
*) echo " Using $default to retore the backup" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment