Howdy, Stranger!

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

Advertise on LowEndTalk.com
How to backup an external IMAP account?
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

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

For those who care:
You can now find me at https://talk.lowendspirit.com or https://www.hostballs.com

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

    I recommend Prometeus, the best provider ever!

  • 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

    Make your choice on your own But i can help you to make them right.

  • 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

    Have an Allwinner H3 device? Android? Check out H3Droid! | Lichee Pi Zero - The 6$ SBC | #SYSarm - Get It! | Atomic Pi - $35 x86 SBC
    21+ Years IT Experience in Linux/Windows Hosting, Administration and Development Services

  • 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! :-)

    For those who care:
    You can now find me at https://talk.lowendspirit.com or https://www.hostballs.com

  • 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 Member, Moderator

    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

    For those who care:
    You can now find me at https://talk.lowendspirit.com or https://www.hostballs.com

Sign In or Register to comment.