Copying multiple accounts with Vandelay

Your question

Can Vandelay be used to copy multiple/all accounts on an Stalwart server?

Vandelay is designed to copy one account at a time – the documented procedure runs the import/export cycle per account and repeats it for each one. There is no built-in “copy all accounts at once” flag in Vandelay itself. However, you can script the process: loop over your list of account identifiers, running vandelay import and vandelay export for each one. Because both halves are convergent (interrupted or repeated runs simply resume from where they left off), you can safely automate the loop.

The overall workflow is:

  1. Run vandelay import <source-protocol> ... <account>.sqlite for each account.
  2. Inspect the archive with vandelay inspect <account>.sqlite if desired.
  3. Run vandelay export ... <account>.sqlite to push it onto the new server.

Full step-by-step details, including the exact commands for JMAP, IMAP, CalDAV, and WebDAV sources, are in the Migrating accounts guide and the Migration overview.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.