Huge difference in Quotas after rsync mail

Laura

Verified User
Joined
Mar 15, 2018
Messages
16
Hello,

I have migrated a directadmin server to a new directadmin server, following this article (easy method): https://docs.directadmin.com/directadmin/backup-restore-migration/full-da-migration.html

Now that works great, however as I need to change DNS domain by domain, I want to take my time :) So, I need to sync all the (users) mail., which I did with the following command adding in etc/crontab:

Code:
*/5 * * * * root rsync -avz --update -e 'ssh -p 43' /home/*/imap/ [email protected]:/home/ >> /var/log/rsync_imap.log 2>&1
*/5 * * * * root rsync -avz --update -e 'ssh -p 43' /home/*/Maildir/ [email protected]:/home/ >> /var/log/rsync_maildir.log 2>&1


However, after this, there is a huge difference in the (user) quotas, almost doubled. When checking the mail folders it looks okay. What could cause this, but more important how can I sync the mail without issues?

Can someone help me with the correct command without creating similar issue?
 
Last edited:
UPDATE:
I noticed that all issues are related to the sync mail command as above. Beside the quotas differences, it als cause ownership issues on the new server. Files cannot be edited anumore with the help of the build in filemanager and sites stopped working. At fronend server message:
You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe

What is the correct rsync command to sync all user mail with/to the new server to run?
 
Code:
rsync -avzHpWP
maybe this args is more safe than your command ?

H = get same hardlinks
p = get same permission.
W = copy files mode "w/o delta-xfer algorithm".
P = show progress during transfer.
 
Try using the above command.

If it's indeed only permission/ownership issues, then you might want to try this command in root via ssh:
Code:
cd /usr/local/directadmin/custombuild
./set_permissions.sh user_homes
 
Back
Top