LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync result (https://www.linuxquestions.org/questions/linux-software-2/rsync-result-4175476213/)

ratotopi 09-06-2013 01:47 PM

rsync result
 
Hi
I created the new partition with the same disk space as the old one and did the rsync of the whole partition. The old partition is mounted as /opt/oracle and the new one is mounted as /new/oracle. I ran rsync command
rsync -avz /opt/oracle/ /new/oracle/
but now /new/oracle partition shows more used disk space then the /old/oracle partition. Why is it so ? what can I do to make it the same. Thank you for your advice

John VV 09-06-2013 04:12 PM

rsync is not dd

are the drives 100% identical ?
the same format?
the same block size ?
and did you take into account ".trash" ?

szboardstretcher 09-06-2013 07:53 PM

rsync result
 
dd is the fastest way to do this as mentioned.

you could also boot up clonezilla for a more gui friendly approach.

pantdk 09-06-2013 09:44 PM

AS refer by "John VV" it should be the same .then below are the command which will work as per your requirement


dry-run (it will show you what file or directory it will sync but it didn't done any thing if need to sync then remove the "-n" switch from the command


rsync -avz -n -X /opt/oracle/ /new

when sync required
rsync -avz -X /opt/oracle/ /new

-X = one-file-system (This tells rsync to avoid crossing a filesystem boundary when recursing)
-n = dry-run (This tells rsync to not do any file transfers, instead it will just report the actions it would have taken.)


rsync -avz -X /opt/oracle/ /new

rknichols 09-07-2013 08:17 AM

The sizes of directories can be smaller on the new filesystem. In the old filesystem there may be directories that are large because they once contained a large number of files. In the new filesystem, the directories will not have any excess size.


All times are GMT -5. The time now is 03:45 AM.