Backup & Restore

Protect your data and migrate between computers using the built-in backup tools.

The Backup & Restore feature helps you safeguard your important data, including profiles, history, and application settings. It also provides a simple way to move your data to a new computer.


Why is this important?

Your templates and PDF files are stored safely in your Workspace folder, which you can easily manage. However, your Application Database—which links everything together—is stored deep inside the system for stability.

This feature allows you to:

  1. Recover from mistakes by reverting to a previous state.
  2. Move your environment to a completely different computer without losing your configuration.

Automatic Backups

By default, PDF Mail Engine works to keep your data safe without any action from you.

  • Auto-Backup on Exit: Every time you close the application, a backup is automatically created.
  • Rotation: The system keeps the last 20 backups and automatically deletes older ones to save space.

You can customize these behaviors in the System view under Backup Settings.


How to Restore

If you need to revert your database to a previous state:

  1. Open the Backup & Restore view from the main menu.
  2. Locate the backup file you want to use (sorted by date).
  3. Click the Restore icon on the right side of the row.
  4. Confirm the warning message. The application will verify the file and restore your data immediately.

Use Case: Moving to a New Computer

Since the database is hidden in a system folder, you cannot simply "copy and paste" it like a normal file. Use the Backup feature to make this easy.

Step 1: On Your Old Computer

  1. Open the application and ensure a backup exists (or close the app to trigger an Auto-Backup).
  2. Open your Workspace folder.
  3. Navigate to the Backups folder.
  4. Copy the latest .zip file (e.g., backup_20260124_....zip) to a USB drive or cloud storage.

Step 2: On Your New Computer

  1. Install PDF Mail Engine.
  2. Launch the app once to let it create the initial folders, then verify where your Workspace is located (check the System view).
  3. Open that Workspace folder and find the Backups folder. (Create it if it doesn't exist).
  4. Paste your .zip file into this folder.
  5. Do not rename the file. The application looks for files starting with backup_.

Step 3: Restore

  1. Go to the Backup & Restore view in the application on the new computer.
  2. You should see your copied file in the list.
  3. Click Restore.

Configuration

You can change how backups work in the System settings.

SettingDescription
Unlimited BackupsIf enabled, old backups are never deleted. Use with caution as this may fill up your disk.
Max Backup CountThe number of files to keep. Default is 20.
Auto-Backup on ExitWe recommend keeping this ON to ensure you always have a recent safety net.

Technical Details

For system administrators or advanced users:

  • Scope: Backups only contain the SQLite database (app_data.db). They do not include your .yaml templates or generated PDF files. You must back those up separately.
  • Location: [Workspace Root]/Backups/
  • Format: Standard ZIP archive containing the .db file.
  • Integrity: The application runs a PRAGMA integrity_check before applying any restore operation to prevent corruption.