Created
June 9, 2022 07:08
-
-
Save khaliqgant/eb6d668280e58750329a06f586dc1460 to your computer and use it in GitHub Desktop.
[Rsync Compression] Rsync compression flags #rsync
This file contains hidden or 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
// bash variabes | |
repo=~/Sites/columbia-repo/ | |
dropbox=~/Dropbox\ \(Personal\)/KJG/Personal/Education/Classes/Advanced\ Programming/homework | |
pass=$repo/auth/.pass | |
clic=clic:/home/kjg2150/cs3157 | |
hw=~/Sites/columbia-repo/c/3157/hw | |
-avz = | |
a = archive | |
v = verbose | |
z = compression | |
sshpass -f "$pass" rsync -avz "$dropbox"/"$1" "$clic" | |
to upload to home | |
rsync -avz sql_backup_2015_09_22-02_30_13.sql.gz windy-tiger:/home/khaliq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment