When you replace a phone, two things matter: your files should arrive safely on the new one, and nothing private should be left on the old one. Apple’s guide to selling or trading in an iPhone covers the device as a whole. This post covers the vault.

Illustration of a person at a shop counter handing over their old phone while holding a new one, as a small teal envelope passes from the old phone to the new.

Step 1: Move the vault first

If you use sync (Hedgehog Bits Plus), install Hedgehog Bits on the new phone, tap Join a Synced Vault… and enter your password, then check your files are there before you erase the old one. Erasing the old phone doesn’t touch the synced copy.

Otherwise, unless you turned on Include in iPhone Backups, the vault isn’t carried across by Quick Start or iCloud Backup, so move it yourself before you erase anything.

  1. On the old phone, open the vault and choose Settings → Export Backup…
  2. Save the .hhbits file to Files, AirDrop it to a Mac, or copy it to a USB drive.
  3. On the new phone, install Hedgehog Bits and tap Restore from Backup…
  4. Choose the file and enter your vault password: the one that was in use when you exported it.
  5. Open the vault on the new phone and check that your files are there.

Only continue once the new phone has everything.

Step 2: Erase the old phone

Follow Apple’s steps, which end with Erase All Content and Settings. Erasing an iPhone removes the vault along with everything else.

The vault was already encrypted with its own key before you erased it, and erasing the device removes the keys that protect its storage. There is nothing extra you need to do for Hedgehog Bits.

If you are trading in at an Apple Store, Apple’s guide asks you to let the specialist complete the erase. Make sure your vault backup is done before you go.

Step 3: Look after the backup file

After restoring, you may still have the .hhbits file on a Mac or USB drive. It is encrypted and opens only with your vault password. You can keep it as a backup or delete it. If you keep it, remember it is a snapshot from the day you exported it.