Put commands on new lines & modified network configurations
This commit is contained in:
12
scripts/backup-all.sh
Executable file
12
scripts/backup-all.sh
Executable 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"
|
Reference in New Issue
Block a user