File Size Difference during migration

gabrielpasv

Member
Aug 2, 2011
18
0
51
I am migrating from one cpanel / whm server to a new server also with cpanel/whm.

I am using the transfer tool that is on whm. However the total size of the account migrated is not the same. For exemple if a account is 4.6MB it migrates with 3.5MB something like that.. always less MB.

Can anyone please tell me what's going on ?

Thank!
 

fi77i

Well-Known Member
Aug 20, 2008
57
0
56
Uruguay
cPanel Access Level
Root Administrator
Did you check if the mails were migrated with the account?

I had issues with some transfers regarding the mail accounts.
Some times the mail accounts were not transferred.

Check there, maybe that's what is making the difference.
 

gabrielpasv

Member
Aug 2, 2011
18
0
51
Hum.... probably is the email...

do you know if there's any way to tranfer just the emails before?

Thanks
 

fi77i

Well-Known Member
Aug 20, 2008
57
0
56
Uruguay
cPanel Access Level
Root Administrator
You need to create the same accounts at the new server, and then you can sync the old server directories content to the new server directories.

The accounts mails are under /home/<user>/mail/<domain>/<account_name>
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
You should transfer the accounts normally and, after they transfer, if there are discrepancies, run a "du -sh /home/username/*" on both machines to see what is the difference to be sure it is the email.

If it is the email, then you could scp over the files, but only do that after you've transferred the accounts. Please do not create the accounts on the new machine prior to transferring them using WHM. If you do, they won't transfer due to the account already existing.
 

gabrielpasv

Member
Aug 2, 2011
18
0
51
After I migrate an account. It looks like this.


OLD SERVER:
[[email protected]***** donateco]# du -sh
80M .


NEW SERVER:
[email protected]***** [/home/donateco]# du -sh
62M


I checked and all subfolders has different sizes. I thinking maybe it does not copy log files, mail spam ?

what else could be this?

Thanks?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
You'd need to provide a breakdown for each folder using the exact command I noted which should give you a breakdown for each folder.

Of note, since the account is active when you are packaging and transferring it, there will be differences in emails and log files. If you want to avoid that, you'd have to shut the site down until it has been moved by suspending it temporarily.
 

gabrielpasv

Member
Aug 2, 2011
18
0
51
Hi Again...

I already did it (du -sh) for all subfolders and They ALL have differences.

I am trying to believe this is some kind of log or junk that didn't need to get copied.

Is the version of OS matters ?
OLD SERVER: Centos 4.9
NEW SERVER: Centos 5.6

Also... all sites seems to be working fine after the migration. I didn't change the DNS yet but on the new IP it seems to be working fine even though has less space in disk.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Without knowing for every single folder what the actual differences are, and you haven't indicated if you'd check each in fine-grain detail like that to know what each differs for exactly, it isn't possible to tell you what is happening. I cannot speculate further at this point. We either need the information or you can simply believe they fully copied.
 

gabrielpasv

Member
Aug 2, 2011
18
0
51
Here is the info:

OLD SERVER:

8.0K ./tmp/analog
764K ./tmp/awstats
8.0K ./tmp/webalizer
8.0K ./tmp/webalizerftp
796K ./tmp
8.0K ./.htpasswds
8.0K ./public_ftp/incoming
16K ./public_ftp
16K ./public_html/_vti_log
120K ./public_html/_vti_pvt
24K ./public_html/nav/_vti_cnf
48K ./public_html/nav
16K ./public_html/_vti_cnf
16K ./public_html/_private
16K ./public_html/_derived
16K ./public_html/_vti_txt
16K ./public_html/_vti_bin/_vti_aut
16K ./public_html/_vti_bin/_vti_adm
48K ./public_html/_vti_bin
8.0K ./public_html/cgi-bin
684K ./public_html/images
1.1M ./public_html
8.0K ./mail/tmp
8.0K ./mail/.Drafts/tmp
8.0K ./mail/.Drafts/cur
8.0K ./mail/.Drafts/new
32K ./mail/.Drafts
8.0K ./mail/.Trash/tmp
8.0K ./mail/.Trash/cur
8.0K ./mail/.Trash/new
32K ./mail/.Trash
8.0K ./mail/cur
8.0K ./mail/new
8.0K ./mail/.Sent/tmp
8.0K ./mail/.Sent/cur
8.0K ./mail/.Sent/new
32K ./mail/.Sent
128K ./mail
16K ./.cpanel
8.0K ./etc
2.2M .


NEW SERVER (after the account migration)

8.0K ./.cpanel/nvdata
16K ./.cpanel/datastore
36K ./.cpanel/caches/dyanmicui
8.0K ./.cpanel/caches/config
8.0K ./.cpanel/caches/featurelists
12K ./.cpanel/caches/filesys
80K ./.cpanel/caches
116K ./.cpanel
4.0K ./cpmove.psql
4.0K ./.htpasswds
4.0K ./etc/autorecyclingca.com
8.0K ./etc
4.0K ./mail/autorecyclingca.com
4.0K ./mail/.Sent/new
4.0K ./mail/.Sent/tmp
4.0K ./mail/.Sent/cur
16K ./mail/.Sent
4.0K ./mail/new
4.0K ./mail/tmp
4.0K ./mail/.Trash/new
4.0K ./mail/.Trash/tmp
4.0K ./mail/.Trash/cur
16K ./mail/.Trash
4.0K ./mail/cur
4.0K ./mail/.Drafts/new
4.0K ./mail/.Drafts/tmp
4.0K ./mail/.Drafts/cur
16K ./mail/.Drafts
68K ./mail
4.0K ./tmp/webalizer
4.0K ./tmp/webalizerftp
8.0K ./tmp/cpbandwidth
4.0K ./tmp/analog
640K ./tmp/awstats
716K ./tmp
4.0K ./public_ftp/incoming
12K ./public_ftp
4.0K ./public_html/cgi-bin
8.0K ./public_html/_vti_bin/_vti_adm
8.0K ./public_html/_vti_bin/_vti_aut
24K ./public_html/_vti_bin
8.0K ./public_html/_private
8.0K ./public_html/_vti_cnf
12K ./public_html/nav/_vti_cnf
24K ./public_html/nav
8.0K ./public_html/_vti_txt
8.0K ./public_html/_vti_log
56K ./public_html/_vti_pvt
632K ./public_html/images
8.0K ./public_html/_derived
864K ./public_html
4.0K ./.mozilla/extensions
4.0K ./.mozilla/plugins
12K ./.mozilla
12K ./.fontconfig
1.9M .


Old has 2.2M and the new has 1.9M

This is a small account.. I had an account with difference with more then 40MB ( for the big ones )
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
For fine-grain detail, this means inside the folder not just at the folder level. Please take one of the folders you aren't certain why it differs and check inside the folder to see what contents are there for files. If there are more folders in that folder, then go into each folder in it and see what files are in there on both the old and new server. This allows you to see with fine-grain details what is there and what isn't there.

Additionally, you have some folders on the old machine that don't exist on the new machine and vice versa. It's weird to me that this account has totally different folders such as the old one not having .cpanel/nvdata on it.