Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to backup an external IMAP account?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How to backup an external IMAP account?

Dear all,

I have an external IMAP account at 1&1 that I would like to backup daily to one or more of my Debian Linux backup servers. Is there any script out there that can do this for me? I would not only need the backup, but also an uncomplicated way to restore them afterwards.

Do you have any hint for me? That would be very much appreciated - Thanks in advance!

Kind regards
Amitz

Comments

  • When i was looking for this a few years ago i found two softwares that could do it - imapsync and imapcopy. I can't remember now which one worked and which one i used.

    You need to have another imap account somewhere else and can copy everything from the first one to the second one. For restoring, do the same thing replacing the source and destination.

    Thanked by 1Amitz
  • I've used offlineimap for this and it has worked very well. I've tested this with Gmail.

    Thanked by 1Amitz
  • NomadNomad Member
    edited September 2015

    I have used imapsync before for a similar task.
    I used it to backup my Gmail acc to my postfix server in a way like:

    screen -d -m -S sync imapsync --host1 imap.gmail.com --user1 [email protected] --password1 yourpassword -ssl1 --host2 mail.secondsite.com --user2 [email protected] --password2 secondaccpassword --exclude All Mail --exclude Folder1 --exclude OtherFolder

    This was the command I used while I was transferring Google Apps > Postfix

    Might help. The last time it made me struggle a bit afterall.

    You can reverse the command and try it.
    Cab run in crontab as well.

    Thanked by 2Amitz netomx
  • @mpkossen said:
    I've used offlineimap for this and it has worked very well. I've tested this with Gmail

    +1 for Offline IMAP

    Thanked by 2Amitz GM2015
  • zeitgeistzeitgeist Member
    edited September 2015

    I've used imapsync on various occasions. +1

    Thanked by 1Amitz
  • imapsync is the answer here, I believe on debian it is now even a package.

    apt-get install imapsync

    Cheers!

    Thanked by 1Amitz
  • AmitzAmitz Member
    edited September 2015

    Guys, thank you all very much!
    I will go through the suggestions and surely find a solution that fits - Again, thank you! :-)

  • Thanks for the information, quite useful. Has anyone tried using the tools mentioned here with Gmail account that has two factor authentication enabled?

  • @heachhog said:
    Thanks for the information, quite useful. Has anyone tried using the tools mentioned here with Gmail account that has two factor authentication enabled?

    You have to generate and unique password for that type of app on Gmail

    Thanked by 2netomx heachhog
  • netomxnetomx Moderator, Veteran

    imapgrab is working great, i am testing it right now.

  • imapsync did the job for my specific needs perfectly. Thank you again, folks! :-)
    https://github.com/imapsync/imapsync

    Thanked by 1netomx
Sign In or Register to comment.