SCP Command
scp <local-file> <username>@<ip-address>:<remote-location>
Flags
-C
: Compress
-v
: Verbose
Rsync Command
rsync -avr <folder-name> username@ip-address:<destination>
Flags
a
: Archive (Ensures that symbolic links, devices, attributes, permissions, ownerships, etc. are preserved)
-r
: Recursive copy folders
-v
: Verbose Output
-z
: Compress
-P
: Show Progress
-n
/ --dry-run
: Perform an trial run
--delete
: Delete files in destination that are not in present in source (Mirror Source) - Used rarely (Can be dangerous)