mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

backup_canary (180B)


      1 #!/bin/bash
      2 
      3 FOLDER="${1:-$HOME}"
      4 FILE="$FOLDER/.backup_canary"
      5 STAMP="$(date +%s)"
      6 DATE="$(LC_ALL=C date)"
      7 HOSTNAME="$(hostname)"
      8 echo "$HOSTNAME:$FOLDER $STAMP $DATE" > "$FILE"
      9