King0770-Notes-rsync-excludes: Difference between revisions

No edit summary
No edit summary
 
Line 9: Line 9:
Rsync <strong>may</strong> see the data.mdb's file size as a <strong>sparse file</strong>, that is created to be the same size as the DB maxsize. i.e., there will be a <strong>data.mdb</strong> file on disk that appears to be <strong>80GB</strong> in size. See, https://wiki.zimbra.com/wiki/OpenLDAP_Performance_Tuning_8.0#Notes_on_MDB <br>
Rsync <strong>may</strong> see the data.mdb's file size as a <strong>sparse file</strong>, that is created to be the same size as the DB maxsize. i.e., there will be a <strong>data.mdb</strong> file on disk that appears to be <strong>80GB</strong> in size. See, https://wiki.zimbra.com/wiki/OpenLDAP_Performance_Tuning_8.0#Notes_on_MDB <br>


You may also want to exclude the mysql's iblogfiles too, as these tend to be large as well. <br>
You may also want to exclude the mysql's ib_logfiles too, as these tend to be large as well. <br>


<code><pre>
<code><pre>

Latest revision as of 01:02, 8 May 2019

If you must use rsync copying data from oldHostname to newHostname, you can use rsync's exclude directive.

For example, you many want to exclude the /opt/zimbra/data/ldap/mdb/db/data.mdb file.

rsync -av --exclude '*.mdb*' /opt/zimbra  root@newHostname:/opt/zimbra

Rsync may see the data.mdb's file size as a sparse file, that is created to be the same size as the DB maxsize. i.e., there will be a data.mdb file on disk that appears to be 80GB in size. See, https://wiki.zimbra.com/wiki/OpenLDAP_Performance_Tuning_8.0#Notes_on_MDB

You may also want to exclude the mysql's ib_logfiles too, as these tend to be large as well.

rsync -av --exclude '*.mdb*' --exclude '*ib_logfile*' --exclude 'ibdata1' /opt/zimbra  root@newHostname:/opt/zimbra


More articles written by me, https://wiki.zimbra.com/wiki/King0770-Notes

Jump to: navigation, search