rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server
I have used these flags -ravpzHogt along with rsync command many times in server migration. And I always get good results.
(1) Date Time stamp of files and folder remain same as you find in source server.
(2) Hidden files or directory recursively transfer to destination server
(3) symlinks and hardlinks also transferred to destination server
(4) Ownership,Group,file/dir permissions remain same.
Given below is the eg. of rsync command.
rsync -ravpzHogt -e ssh /opt/* root@remote_server:/opt/
To know about each flags.Plz. read “man rsync”