Recent dev

This commit is contained in:
DarkFeather
2016-12-13 19:58:03 -06:00
parent 00f5dcc8f3
commit 63d0ccc2de
2 changed files with 9 additions and 10 deletions

View File

@@ -11,9 +11,10 @@ if (ping -c 4 "$1" | grep -c ' 0% packet loss,'); then
echo User did not confirm.
exit 1;
else
rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / root@"$1":/mnt/
echo rsync exited with status $?
exit $?
rsync -aAXv --delete --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / root@"$1":/mnt/
status="$?"
echo rsync exited with status $status
exit $status
fi
else
echo "Host is not responding in a timely fashion."