Skip to content
VaultLens Studio

Archive overview

Archive moves records you no longer need out of Knack into CSV files saved where you choose. It frees space in Knack and keeps a full record of what was removed, so you can restore it later.

Archive is included in the Archive, Studio and Business plans. Owners and admins set it up. Members can see the archive history.

How it works

  1. You add a Yes/No field to each Knack table you want to archive, and decide which records become Yes.
  2. On each run, VaultLens writes every record flagged Yes to that table’s CSV file. Each table gets its own file every run.
  3. The file is saved straight to a place you own: your Knack app, a cloud bucket or a cloud drive. VaultLens never keeps a copy.
  4. Only after your destination confirms the file arrived intact does VaultLens change anything in Knack. It then deletes the records, or keeps them and sets the flag back to No.

Each CSV starts with readable columns you can open in Excel. It also holds the full record and its links in extra columns, so it can be restored.

Set up your first archive

  1. Open the app and click Set up archive on the Archive card.
  2. Under Which tables?, tick one or more tables.
  3. Under Key and archive flag for each table, choose:
    • the Key: the first CSV column, and what you search for later. It can be the Knack record ID, or a Short Text, Number, Auto Increment, Email, Equation or Text Formula field.
    • the Archive flag (Yes/No). See Set up the archive flag.
  4. Click Check how many are flagged to see how many records would go now.
  5. Under What happens when records are archived?, choose Delete it from Knack or Keep it in Knack and set the flag back to No.
  6. Choose When to run: Only when I click Run, Every night at 2:00 AM or Sundays at 2:00 AM.
  7. Leave Test mode on for your first runs.
  8. Under Where should archive files go?, choose a destination. See Archive destinations.
  9. Review and click Save, or Save and run now.

Before deletes are switched on, you confirm that archived records are deleted from Knack once their CSV is saved, and that the CSV becomes the record of them.

Test mode

In test mode, VaultLens writes the CSVs but changes nothing in Knack. Check that the files look right, then edit the setting and turn test mode off.

Run and follow an archive

The Archive page has three tabs:

  • Dashboard: records archived, tables, last and next run, and each archive setting with Run now, Edit and Delete.
  • Config: add or change archive settings.
  • Log: run history, where each file was saved, Find a record, and restore.

Run now first shows how many records are flagged and roughly how many Knack API calls the run uses. A run that needs more than today’s budget pauses and carries on after each reset. See Knack API budget.

Deleting an archive setting stops future runs. Files already archived and the run history stay.

Files and images

The contents of file and image fields aren’t in the CSV. The archive keeps their names and Knack IDs. Before a record is deleted, its files stay attached in a VaultLens Archived Files table in Knack, so a restore can reattach them. You sign off on this once per table that has file or image fields. If that table or its records are deleted, the files can’t be restored.

If you use analytics too

When a record copied by analytics is archived and deleted, its row stays in your database with _archived_at set.