00-check-root 136 Bytes
Newer Older
1
2
3
4
5
#!/bin/bash
if [ $EUID != 0 ]; then
  echo "Sorry, backups must be run as root. Run \`sudo backup2l -b\` to take a backup."
  exit 1
fi