Last active
June 4, 2021 07:56
-
-
Save romanhaa/25079bd8653e8c1f392de704c48097ee to your computer and use it in GitHub Desktop.
Copy files/directories with `rsync`
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
# copy directory from A to B | |
rsync -ah --info=progress2 <DIR_SOURCE> <DIR_TARGET> | |
# copy directory from A into B | |
rsync -ah --info=progress2 <DIR_SOURCE> <PARENT_OF_DIR_TARGET>/ | |
# copy content of directory A into B | |
rsync -ah --info=progress2 <DIR_SOURCE>/ <DIR_TARGET>/ | |
# copy directory from A to B on remote machine | |
rsync -ah --info=progress2 <DIR_SOURCE> <REMOTE>:<DIR_TARGET> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment