X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/6b669353824a74a935077f40dd70662597d8922d..190f715747bca44914cb8904e3b07c2d499f44f4:/backmeupscotty?ds=sidebyside diff --git a/backmeupscotty b/backmeupscotty index ad2fa65..152cf86 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -8,12 +8,16 @@ BACKUP_RUNEVERYNTHDAY=1 _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 {