This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# go to working directory | |
echo "$(date) Preparing..." | |
cd /root/backup/backups | |
# get current date for file names (careful if you run it more than once per day | |
DATE=`date +%Y%m%d` | |
NAME=$(uname -n)-${DATE} |