Partial backup didn't include email accounts
Early today I made a partial backup of an account using the command /scripts/pkgacct --skiphomedir XXX
however when I restored the backup file to another server
I noticed that the email accounts weren't created
I used this command before and WHM/CPanel created the folders for email accounts.
So I don't know what may have changed.
Do you?
My purpose is migrate the email messages later using rsync
-
I need to migrate a CPanel account that is using 90% of the disk space of a VPS so I can't use CPanel migration tools. I thought I could use the pkgacct command in this case and migrate mailboxes contents with rsync later but I got the following response from CPanel support. Can you give me a suggestion? [QUOTE]Email account information is located in the following file paths: /home/$user/etc/$domain/passwd /home/$user/etc/$domain/shadow Therefore, when using the --skiphomedir option with pkgacct, the email accounts will not be included in the backup. If you need to create a backup that includes the email accounts, you will not be able to use the --skiphomedir option. I apologize for any inconvenience. Please let us know if you have any questions. 0 -
Hi @albatroz Are they present in the archive? skiphomedir will skip the user's home dir and mail is stored in /home/$user/mail 0 -
No they aren't. That is why I am looking for alternative methods to finish the migration. Hi @albatroz Are they present in the archive? skiphomedir will skip the user's home dir and mail is stored in /home/$user/mail
0 -
On this other forum someone suggested me to disable 'Compressed' option in the WHM transfer menu. webhostingtalk.com/showthread.php?t=1757622 What do you think? 0 -
Hi @albatroz I'm curious, you mentioned your end goal was to rsync the data from the current server to the new server - is there a reason you can't rsync it directly from the current account? As far as the compressed suggestion: Transfer Tool - Version 78 Documentation - cPanel Documentation [QUOTE] Select Compressed Transfers to compress the files during the rsync process when the remote server transfers the files between the remote and destination servers. Note: This option does not affect the package account function, which creates a gzip archive of the user's account on the remote server. 0 -
So according to your reply I could have left the compress option enabled and the transfer of the account with 20GB of data would have finished despite the fact that the source server only has 4GB of free disk space? 0 -
Hi @albatroz That is not what I'm relaying. I'm saying that either way a copy of the account is made and sent to the destination server but it's got to be created on the source server. If there's not enough space on the source server to create this then you will not be able to transfer. 0 -
I still can't understand how could make WHM to transfer an account with 20GB of data if the source server only has 4GB of free disk space. Hi @albatroz That is not what I'm relaying. I'm saying that either way a copy of the account is made and sent to the destination server but it's got to be created on the source server. If there's not enough space on the source server to create this then you will not be able to transfer.
0 -
I still can't understand how could make WHM to transfer an account with 20GB of data if the source server only has 4GB of free disk space.
Again, this can't be done, you need the amount of space a full backup takes on the source server, otherwise, this process will fail unless you're doing one account at a time and the account's backup does not consume more than 4GB0 -
Hi, It took few hours to troubleshoot missing email accounts until I saw this thread. I migrated to new server using Transfer Tool & pkgacct with skip home directory option. Then I did rsync mail/ directory. The email accounts don't show up in cPanel :eek:. Only after I did rsync etc/ directory then the missing email accounts show up per information here. Thanks!! :) [QUOTE]Email account information is located in the following file paths: /home/$user/etc/$domain/passwd /home/$user/etc/$domain/shadow Therefore, when using the --skiphomedir option with pkgacct, the email accounts will not be included in the backup. If you need to create a backup that includes the email accounts, you will not be able to use the --skiphomedir option. I apologize for any inconvenience. Please let us know if you have any questions. 0
Please sign in to leave a comment.
Comments
10 comments