Linux - Rsync with hidden files, Copy files using rsync

Rsync with hidden files

To copy hidden files, you must include --include
 # rsync -av --include='.*' /opt/bluff/* /opt/linux/.

If you are not using "*" and "." at the end rsync will copy hidden files
 # rsync -av --include='.*' /opt/bluff/ /opt/linux/

Below are few examples of rsync
 # rsync -axHAX --progress --stats /opt/bluff/* /opt/linux/.
 # rsync -axrvptl --progress --stats /opt/bluff/* /opt/linux/.

 # rsync -axHAX --exclude="https_logs*" --progress --stats /opt/bluff/* /opt/linux/.

-a	--archive	archive mode; equals -rlptgoD (no -H,-A,-X)
-A	--acls		preserve ACLs (implies -p)
-H	--hard-links	preserve hard links
-X	--xattrs	preserve extended attribute
-p	--perms		preserve permissions
-o	--owner		preserve owner (super-user only)
-g	--group		preserve group
-v	--verbose	increase verbosity
-l	--links		copy symlinks as symlinks
-t	--times		preserve modification times
-r	--recursive	recurse into directories
-z	--compress	compress file data during the transfer
-x	--one-file-system	don't cross filesystem boundaries

 # du -s -B1 --apparant-size
 # ls -ltrh

The topic on Linux - Rsync with hidden files is posted by - Laxmi

Hope you have enjoyed, Linux - Rsync with hidden filesThanks for your time

Tech Bluff