X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/5e8b95f582e1327273442cc2ad0388aec5165d9c..190f715747bca44914cb8904e3b07c2d499f44f4:/backmeupscotty diff --git a/backmeupscotty b/backmeupscotty index 1d09266..152cf86 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -6,16 +6,18 @@ ARCHIVE_KEEPNBACKUPS=30 ARCHIVE_KEEPNDAYS=30 BACKUP_RUNEVERYNTHDAY=1 -function upperme { - echo $(basename $0) | tr '[:lower:]' '[:upper:]' +_UPPERME=$(echo $(basename $0) | tr '[:lower:]' '[:upper:]') + +function timestamp { + date +"[%y-%m-%d %H:%M:%S]" } function scottyinfo { - echo $(upperme): $@ + echo $(timestamp) $_UPPERME: $@ } function scottyerror { - echo $(upperme): $@ >&2 + echo $(timestamp) $_UPPERME: $@ >&2 } function ssh255 {