Put commands on new lines & modified network configurations

This commit is contained in:
2023-04-27 15:52:01 -05:00
parent 6f0ff9094e
commit 4959f00bd3
5 changed files with 70 additions and 27 deletions

12
scripts/backup-all.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
DEST_DIR="$1"
if [ -z "$DEST_DIR" ]; then
echo USAGE: "$SCRIPT_DIR"/backup-all.sh [DEST]
exit 1
fi
# Backup new data & delete old data
/usr/bin/rsync -a --delete "$SCRIPT_DIR"/../ "$DEST_DIR"