anchor.diff:  RESTORE_DIR=/tmp/openvpnas_restore
   
   echo 'starting restore'
  +echo
  +
  +echo 'this will remove current config'
  +read -r -p "Are you sure? [y/N] " response
  +case $response in
  +    [yY][eE][sS]|[yY])
  +    ;;
  +  *)
  +    exit 0
  +    ;;
  +esac
  +
  +if [ -f $OPENVPNAS_DIR/RESTORED ]; then
  +  echo 'existing restore found, aborting!'
  +  exit 1
  +fi
   
   # make a temporary restore directory
   mkdir -p $RESTORE_DIR
  
positive.code: 
  # download the latest backup
  RESTORE_NAME=$(/usr/local/bin/aws s3 ls s3://$RESTORE_BUCKET | grep -o 'openvpnas-backup[^\n]*' | tail -1)
  aws s3 cp s3://$RESTORE_BUCKET/$RESTORE_NAME.tar.gz openvpnas-backup.tar.gz
  
  # extract the backup to the temp dir
  
  
negative.code: 
  # Generated by Chef
  
  # ./usr/local/openvpn_as/scripts/sqlite3 [DB_FILE] < [TEXT_FILE]
  
  # /usr/local/openvpn_as/etc
  # certs.db
  