eMail accounts moving via FTP (cur & new) dates problem

Munchener

Registered
Mar 6, 2014
2
0
1
cPanel Access Level
Root Administrator
Hi there!

I have to move several email accounts from one email server to another. I will use the easy FTP way: copy the cur and new folders of each account and paste them into the new server accounts.

But, the issue I have is that all mails now have the FTP-copy date&time, instead of the original date&time. That is, all moved emails appears to have been received today at almost the same time. For older emails, this is problematic.

Is there a way to use this method but keeping the original date&time of the emails?

Many, many thanks in advance!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

You could generate an archive (e.g. zip) of the email directories, and then transfer the archive instead of the individual files. This way, when you restore the archive on the destination server it retains the timestamps of the files.

Thank you.
 

Munchener

Registered
Mar 6, 2014
2
0
1
cPanel Access Level
Root Administrator
Re: eMail accounts moving via FTP (cur & new) dates problem

Hello :)

You could generate an archive (e.g. zip) of the email directories, and then transfer the archive instead of the individual files. This way, when you restore the archive on the destination server it retains the timestamps of the files.

Thank you.
Oh, I didn't think of that! Sounds great! I will try that.

Thank you very much, Michael!

- - - Updated - - -

Hello :)

You could generate an archive (e.g. zip) of the email directories, and then transfer the archive instead of the individual files. This way, when you restore the archive on the destination server it retains the timestamps of the files.

Thank you.
I just realized that I can't/don't know how to generate a zip file of a FTP folder in order to retain the timestamp of the files, as well as decompressing that file later on within the new server.

How would you suggest me to do that? My FTP software appears not to have that function (FileZilla).

Thank you!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
I suggest generating/extracting the archive via the command line (SSH).

Thank you.