Skip to content

Instantly share code, notes, and snippets.

@amiresp
Last active July 9, 2022 21:48
Show Gist options
  • Save amiresp/57087fbeaffd3fa05cd6fde832502b4b to your computer and use it in GitHub Desktop.
Save amiresp/57087fbeaffd3fa05cd6fde832502b4b to your computer and use it in GitHub Desktop.
rsync.sh
set -Eeuo pipefail
trap "echo '❌ Error'" ERR
echoStep () {
echo "🔹 $1"
}
error () {
echo "❌ $1"
exit 1
}
fld="arc"
echoStep "Target Folder : $fld"
echoStep "sync: Starting ..."
rsync -Pazzh "/srv/$fld/" user@ip:/move/$fld/
echoStep "FINISHED"
@amiresp
Copy link
Author

amiresp commented Jul 9, 2022

rsync for move server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment