How do you go about that? The documentation says:
Q. Can imapsync be used to maintain and restore a local offline copy of a mailbox, eg for backup purposes, using Mbox or Maildir format, so that if the server fails, then the mailbox could be reinstated?
R1. No. Imapsync plays with IMAP servers only.