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 |
rsync is not dd
are the drives 100% identical ? the same format? the same block size ? and did you take into account ".trash" ? |
rsync result
dd is the fastest way to do this as mentioned.
you could also boot up clonezilla for a more gui friendly approach. |
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 |
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. |