Skip to content

Instantly share code, notes, and snippets.

@sam0x17
Created November 20, 2020 07:03
Show Gist options
  • Save sam0x17/d68c231eebf82a7e4c72fd7423091d0e to your computer and use it in GitHub Desktop.
Save sam0x17/d68c231eebf82a7e4c72fd7423091d0e to your computer and use it in GitHub Desktop.
rsync pull
#!/bin/bash
echo "pulling from sam-desktop via rsync..."
rsync -chavzP --stats sam@sam-desktop:/home/sam/workspace /home/sam/
echo "done."
@sam0x17
Copy link
Author

sam0x17 commented Nov 20, 2020

push:

#!/bin/bash
echo "pushing data to sam-desktop via rsync..."
rsync -chavzP --stats /home/sam/workspace sam@sam-desktop:/home/sam/
echo "done."

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