Recent dev
This commit is contained in:
@@ -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."
|
||||
|
Reference in New Issue
Block a user