Guys...
I am trying to mirror two servers together as some of you already know from previous help threads I have posted. Now that I successfully used tar and ssh to migrate all my bulk data from "LT2FS1" > "LT2FS0", I am trying to keep LT2FS0 mirrored with LT2FS1.
So here is the command I ran. Now keep in mind that my main goal is to copy and changes made LT2FS1 over to LT2FS0 which includes files that have been deleted.
The following command is being ran from LT2FS0 so it mirrors LT2FS1
Now when it is complete, I do a df -h and review the data on /share and look at the difference...Code:rsync -avz --delete -e ssh root@10.1.1.24:/share/ctia /share/
LT2FS0
LT2FS1Code:/dev/sdc1 670G 237G 400G 38% /share
Code:/dev/sdb2 304G 236G 52G 83% /share
Now to make sure this is working correctly including the --delete, I added some folders on LT2FS0 that did not exist on LT2FS1 and after the RSYNC was done the folders were no longer there. So this tells me that this is working.Code:rsync -avz --delete -e ssh root@10.1.1.24:/share/ctia /share/
Any reason for the extra GB in disk size?

Reply With Quote



