restore a folder mad by offlineIMAP on (Synology) NAS

Henny Zutt h.zutt at destaken.nl
Wed Aug 17 20:00:49 BST 2016


Hi group,

I am a newbie with offlineIMAP, so have some patience .......

I've looked on the net, but could not find a proper procedure to restore 
a folder i backuped with
offlineIMAP from a synology NAS. (192.168.2.99)

This is my simple script to make the backup ( on a debian linux system 
under user miep)

#!/bin/sh
PATH=/opt/someApp/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

/usr/bin/offlineimap >> /home/miep/imap.log 2>&1
echo `date +%d-%m-%y` >> /home/miep/imap.log
tail -2 imap.log |mail -s "Backup-Mail-miep" miep at some-domain.com
/bin/rm /home/miep/imap.log

This is the -dot-offlineimaprc

root at Sheeva:/home/miep# cat .offlineimaprc
[general]
accounts = miep

[Account miep]
localrepository = Local
remoterepository = Remote

[Repository Local]
type = Maildir
localfolders = /MailBackup/miep

[Repository Remote]
type = IMAP
remotehost = 192.168.2.99
remoteuser = miep
remotepass = known-to-me
readonly = true

How do i restore a single folder or if thats not possible the whole set  
from the debian linux system
back to the server ?  ( in a different user ?)

Help appreciated!

Poekel















More information about the OfflineIMAP-project mailing list