Skip to main content

How to change a restic password without losing your Rust backups

Add the new way in, test it on existing backups, then retire the old password. The password that opens your backups and the credentials that reach their storage can expire separately.

Identify which access is changing

This applies to a restic repository you run yourself. Access to the storage gets you to the repository. A repository password lets restic read the backups inside it. Write down which path or storage account and password entry your backup jobs use. Keep the recovery password somewhere you can reach if the Rust host goes down.

Identify which access is changing
Reason for the changeWhat to verify
Switching the storage account or credentialsWith the new access, reach the intended repository and restore an existing snapshot.
Routine replacement of a repository passwordAdd a new repository key with its own password. From another device using only the new password, restore something from the history you want to keep.
Suspected exposure of the repository encryption keyCreate a new repository with its own encryption keys. Verify required history and new backups there. A password change alone leaves the old encryption keys in use.

Make the next backup and read an old one

Suppose you created a repository password on the old host and now want one in your recovery vault. Add the new password through restic's key management. Check that you can recover a pre-update snapshot and its expected .sav from a separate device. Update your backup job and check that it makes a new snapshot you can read with the new access.

Keep a separate, verified copy of important recovery points before revoking anything. Once the old and new points both open using the new credentials, retire the old access and repeat the retrieval check. If you moved repositories because a key was exposed, limit access to the old repository and copies. A replacement key cannot protect a copy someone already obtained.

Sources

Analytics settings

Analytics are off.

Help improve RustSC with page counts and performance measurements. Privacy details