rsync
rsync **source/** **destination
The source path must have a trailing slash to signify the end of the source directory path
- -a = all or recursive (sync all files in the directory).
- -z = Reduce network transfer by adding compressing option.
- -P = Combines the flags --progress & --partial (--progress gives you a progress bar, --partial allows you to resume partially/interupted transfers).
[/directory/on/my/computer] ---> [/directory/on/server]
rsync -azP /Users/{username}/code/images/ [email protected]:/home/forge/mydirectory/storage/app/public