I'm trying to maintain a replica copy of the File system on another machine for a cold standby.
To to the first copy of the entire system I ran an rsync job with the below command.
rsync -avlP root@master:/data/App1/* /data/app2_testing
This completed successfully without any errors or issue. I was able to start the application as well and was able to use it efficiently.
Ran a second run and that also completed as expected but the only difference being the file system size now in the master was 10 GB but on the Slave machine is 11 GB.
As per rsync it should only copy the modified files but strangely the filesystem size has increased.
Went through a few documentation and links still seeing the same behavior:
rsync -hvrPt root@master:/data/App1/* /data/app2_testing
What should be the right procedure to do the rsync so it only copies changed files and not increase the space on the slave machine??