Created
March 23, 2024 15:22
-
-
Save arkenidar/a682463b9fbef04f5eab6120a456da36 to your computer and use it in GitHub Desktop.
sync task (from local workspace to remote filesystem). note: vice-versa is possible also (invert order of source and destination arguments and tweak them accordingly).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## add the following line ... | |
# source "$HOME/sync_task.bash" | |
## ... to "$HOME/.bashrc" (BASH initialization hidden file) | |
function sync_task(){ | |
# note: vice-versa is possible also (invert order of source and destination arguments and tweak them accordingly). | |
rsync -zarv --delete /c/0/Dropbox/desktop [email protected]:/root && printf "\n\n *rsync-complete* \n\n" | |
printf "\n\n hint: type 'sync_task' to do it again \n\n" | |
} | |
printf " \n 'sync_task' bash function definition added. you can use it. \n " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment