Skip to content

Instantly share code, notes, and snippets.

@lpanebr
Created October 21, 2016 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lpanebr/77c8ab7abe3a6b29fed4f9d5024aeadc to your computer and use it in GitHub Desktop.
Save lpanebr/77c8ab7abe3a6b29fed4f9d5024aeadc to your computer and use it in GitHub Desktop.
#!/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