# Archive campaign history

As campaigns run, they build up a history of every communication they send and every response they get. Archiving moves the history you no longer need from the PeopleStage database to an archive database, which keeps the PeopleStage database to a manageable size. Set it up for all your campaigns on the **Campaign Archiving** page of **Application Settings**. Then change it for any folder or campaign that needs different settings.

Archiving works in two stages:

1. On the marking schedule, records that are old enough to archive are marked for archiving.
2. During the archiving window, marked records move to the archive database in batches.

Archiving in Orbit uses the same settings as archiving in PeopleStage. For more on how it works, and how it affects constraints, pools, and reports, see [PeopleStage archiving](<https://help.apteco.com/en/peoplestage/campaigns/archiving/index.md>).

## Before you begin

To set up archiving, you need:

- Admin permissions in Orbit, to open **Application Settings**
- A system that shows live PeopleStage campaign data. On a system with campaigns turned off, or showing sample data, the **Campaign Archiving** page isn't available.
- An archive database, with archiving turned on in the FastStats Configurator. See [Administration of archiving](<https://help.apteco.com/en/peoplestage/campaigns/archiving/index.md#administration-of-archiving>).

## Set the default archiving settings

The settings on the **Campaign Archiving** page apply to all your campaigns, except a folder or campaign with its own settings.

[![The Campaign Archiving page with Overall settings selected and Archive After set to 4 Months, above the Marking Schedule and Staging Mark Schedule sections](<https://help.apteco.com/assets/images/orbit/reference/admin/application-settings/campaign-archiving/campaign-archiving.png>)](<https://help.apteco.com/assets/images/orbit/reference/admin/application-settings/campaign-archiving/campaign-archiving.png>)

To set the defaults:

1. Select the user icon at the top right, then select **Application Settings**.
2. Select **Campaign Archiving**.
3. Choose how long to keep campaign history (see [Archive settings](<#archive-settings>)):

   - **Overall settings**: archive all campaign history after one period, set in **Archive After**
   - **Advanced settings**: choose which parts of a campaign's history to archive, and when to archive each one
4. Under **Marking Schedule**, turn on **Mark for archiving**, then set how often to mark records for archiving.
5. If your system uses a staging database, set the **Staging Mark Schedule** too (see [Staging mark schedule](<#staging-mark-schedule>)).
6. Under **Archiving Window**, choose when archiving can move records to the archive database. Select each day of the week that archiving can run, then set its time periods. To add another time period to a day, select **Add Time Period**. Check the **Time zone** too.

   Choose quiet times, such as evenings and weekends, so that archiving doesn't slow down your campaigns.
7. Select **Save**.

### Archive settings

**Archive After** sets how old a record must be before it's archived: a number, and **Days**, **Weeks**, **Months**, or **Years**.

[![Advanced settings with Audiences archived after 3 Months and Interactions archived after 4 Months, excluding Clicks](<https://help.apteco.com/assets/images/orbit/reference/admin/application-settings/campaign-archiving/advanced-settings.png>)](<https://help.apteco.com/assets/images/orbit/reference/admin/application-settings/campaign-archiving/advanced-settings.png>)

With **Advanced settings**, select each part of a campaign's history that you want to archive, then set its own **Archive After** period:

- **Audiences**
- **Content**
- **Delivery**
- **Pools**
- **Response**
- **Interactions**

Any part you leave unselected isn't archived, so it stays in the PeopleStage database.

For **Interactions**, you can keep some types of interaction out of archiving, such as clicks. Under **Excluding (do not archive)**, select **Add Condition**, then choose the type: **Bounces**, **Clicks**, **Deliveries**, **Failures**, **Opens**, **OptIns**, **OptOuts**, **Replies**, or **Transactions**.

### Staging mark schedule

**Staging Mark Schedule** only appears with Apteco software version Q3 2026 or later. It sets when records are marked to refresh into the staging database, separately from the archive marking schedule. If you leave **Mark for staging** turned off, no records are marked for staging.

## Change the settings for a folder or campaign

A folder or campaign can have its own archive settings. A folder's settings apply to every campaign in it. A campaign's settings apply to that campaign only. The marking schedule and archiving window always come from the **Campaign Archiving** page.

To change these settings, you need the **Archiving** permission on the folder or campaign. See [Resources and their permissions](<https://help.apteco.com/en/orbit/reference/admin/roles-and-rights/permissions/resources-and-their-permissions/index.md>).

[![A campaign's Archiving side panel, which says its settings apply only to this campaign, with Overall settings selected and Archive After set to 3 Months](<https://help.apteco.com/assets/images/orbit/reference/admin/application-settings/campaign-archiving/archiving-side-panel.png>)](<https://help.apteco.com/assets/images/orbit/reference/admin/application-settings/campaign-archiving/archiving-side-panel.png>)

To change the settings for a folder:

1. In **Campaigns**, open the folder.
2. Select the options menu (**⋮**) at the top right, then select **Archiving**. You can also select **Archiving** from the options menu on the folder's tile or row.
3. Choose **Overall settings** or **Advanced settings**, and set them (see [Archive settings](<#archive-settings>)).
4. Select **Apply**.

To change the settings for a campaign:

1. Open the campaign, then select the **Journey** tab.
2. Select the options menu (**⋮**) at the top right, then select **Archiving**. Quick messages don't have this option.
3. Choose **Overall settings** or **Advanced settings**, and set them (see [Archive settings](<#archive-settings>)).
4. Select **Apply**.

## Go back to the default settings

To stop a folder or campaign using its own settings, open its **Archiving** side panel, select **Reset to Default**, then select **Apply**. It then uses the settings from the folder it's in, or from the **Campaign Archiving** page.
