Restoring another computer’s backups
From Nyx Backup 1.0.4, one computer can restore the backups another computer makes. You attach the other computer’s backup set here: it appears in the Restore tab beside your own sets, marked Read-only, and you browse and restore it exactly as you would your own.
Typical reasons:
- A new computer recovering files from the one it replaces.
- One computer in a household or office restoring another’s files while that computer keeps backing them up.
- Checking, from a second machine, that a computer’s backups really restore.
Attaching is read-only in the strict sense. This computer never backs up to an attached set, never prunes or tidies it, and never deletes anything from it. The storage it opens for an attached set refuses every write before any request is made, so the other computer’s backups cannot be changed from here even by mistake.
What you need
- The other computer’s recovery passphrase (or its key file). Its backups are encrypted with its key, so nothing else can read them. If both computers were set up with the same key, you need nothing - leave the key field empty.
- A way to reach where the backups are stored. A cloud bucket or storage service is reachable from anywhere; a NAS share from the same network; a drive by plugging it in.
You do not need a licence to attach or restore, and a computer used only to restore other computers’ backups does not need a key of its own.
Make a recovery kit now
The easiest time to make a connection file is before you need one. Do it once, on each computer you back up, and a replacement computer can restore everything that computer backed up - after a theft, a dead drive or a house move - from just two things:
- The connection file. Make it as in step 1 below, with Include the storage credentials ticked, so the new computer needs nothing else to reach the backups: no bucket names, regions or access keys to look up.
- The computer’s recovery passphrase - the one you wrote down when you
set Nyx Backup up - or a key file saved with
nyx_bkp_cli export-key.
Keep the two in different places. The connection file is encrypted with the computer’s key, so on its own it is useless to anyone who finds it: keep it in your cloud storage, in an email to yourself, or on a USB stick. The passphrase is what opens it, so keep the passphrase somewhere else - a password manager, or on paper somewhere safe. Someone holding both could read your backups, which is exactly what the kit is for.
Make a new file whenever you add a backup set, move one to a different
destination, or change a destination’s access keys. The file records the sets
and their storage as they were the day you made it, and its name carries that
date, for example OFFICE-PC-2026-11-01.nyxset.
What the kit does not cover:
- Sets kept in a folder on the computer’s own disk. Those backups go with the disk, so nothing can recover them elsewhere. Back up to an external drive, a NAS or the cloud as well (see the 3-2-1 rule).
- Your Google Drive, OneDrive and Dropbox sign-ins. The file says where those backups are; the new computer signs in to the same account itself.
Using the kit on a new computer:
- Install Nyx Backup. At first run, choose Only restore another computer’s backups - the new computer does not need a key of its own to restore, and can make one later when you start backing it up.
- Choose I have a connection file (.nyxset), pick the file, and enter the old computer’s recovery passphrase (or Load from file… for a key file). Click Open file, then Select all and Attach selected.
- Restore as in step 3 below.
Step 1: make a connection file on the other computer
On the computer whose backups you want:
- Open Settings > Storage.
- Under Share this computer’s sets with another computer, click Share this computer’s sets….
- Tick the sets to include and click Save connection file….
The file is named after the computer and the date, for example
OFFICE-PC-2026-11-01.nyxset. It tells the other computer where each set’s
backups are and, unless you untick Include the storage credentials, the
storage access keys. The whole file is encrypted with this computer’s key, so
only someone with its recovery passphrase can open it. Keep it as you would
keep the passphrase.
The Share button in a backup set’s editor does the same with that set
already ticked. From the command line: nyx_bkp_cli export-set (every set) or
nyx_bkp_cli export-set "Documents".
Sets that cannot be shared
Some rows are greyed out, with the reason underneath:
- A folder on this computer’s own disk. Another computer cannot reach it. Share that folder over SMB or SFTP and attach it by hand on the other computer (step 2, second way), or back up to a drive you can carry.
- SharePoint, for now - no other computer can sign in to it yet.
- A set with no destination yet.
A set on an external drive can be shared: plug the drive into the other
computer and Nyx Backup finds it wherever it mounts there, whether that is
/Volumes/..., a drive letter or /media/....
Step 2: attach on this computer
Open the Restore tab and click Restore from another computer…. There are two ways in.
With the connection file. Choose I have a connection file (.nyxset), pick the file, enter the other computer’s recovery passphrase, and click Open file. Nyx Backup lists the sets in the file with how many snapshots each has. Nothing is ticked to begin with; tick the ones you want (or Select all) and click Attach selected.
By hand. Choose Enter where the backups are, pick the storage type, and
enter its location and login, as the other computer’s backup set has them. For
Google Drive, OneDrive or Dropbox there is no login to type: click
Sign in to … and sign in to the account the backups are in (for OneDrive
and Dropbox, also enter the folder if it is not the usual /NyxBackup; Google
Drive needs none). Click Find backup sets: Nyx Backup lists the computers
and sets stored there and whether your key reads each one. Click Attach
beside a set.
A set with no backups yet is listed as having no snapshots yet and cannot be ticked. A set your key cannot read says so.
Google Drive, OneDrive and Dropbox
These sets can be shared, but the connection file never carries your sign-in to them - that sign-in would unlock your whole cloud account, not just one folder. When you attach one, Nyx Backup offers a sign-in button for the service. Sign in to the same account the backups are in: each of these folders belongs to one account, and another account has nothing at that path.
Each service gets its own sign-in. A file holding sets on Google Drive and Dropbox asks for both; the sets you have already ticked stay ticked while you sign in to the next.
Step 3: restore
A freshly attached set appears in the Restore tab under From other computers. The first time, Nyx Backup reads the index of every pack the set uses so it can find each file’s data. A large set takes a few minutes; its row in Settings > Storage > Sets from other computers shows Indexing N of M packs meanwhile, and its snapshots appear when that finishes. After that, restore exactly as described in Restoring files - choose a snapshot, select files, choose where they go.
Owners and permissions follow the usual rules for a restore on a different computer: by default the files are yours; with Restore original owners and permissions, owners are matched by account name. See Permissions, owners and file attributes.
Keeping it up to date
The other computer keeps backing up while its set is attached here. Nyx Backup checks for its new snapshots when you open the set (at most every 15 minutes) and before each restore, and drops snapshots the other computer has since pruned. To check at once, use Check now in Settings > Storage > Sets from other computers.
Managing attached sets
Settings > Storage > Sets from other computers lists every attached set with where it is stored and when it was last checked:
- Check now - look for new snapshots.
- Rename - change the name it is shown under here. Two computers often both have a set called “Documents”; a set whose name is already used here is attached as “Documents (OFFICE-PC)”.
- Change credentials - for example after the other computer’s owner gives you a read-only access key.
- Detach - forget the set on this computer: its entry, its stored credentials and its local index. Its backups stay exactly where they are, and you can attach it again later.
From the command line
| Task | Command |
|---|---|
| Make a connection file | nyx_bkp_cli export-set (add set names to choose) |
| List what a file holds | nyx_bkp_cli import-set FILE.nyxset --key-file PASSPHRASE.txt |
| Attach from a file | add --set "Documents" (repeatable) or --all |
| Find and attach by hand | nyx_bkp_cli attach --type s3 --url s3://bucket/prefix --key-file PASSPHRASE.txt [--set NAME] |
| List attached sets | nyx_bkp_cli attached |
| Check for new snapshots | nyx_bkp_cli refresh "Documents" |
| Detach | nyx_bkp_cli detach "Documents" |
Restore and browse attached sets with the usual nyx_bkp_cli snapshots and
nyx_bkp_cli restore. Secrets are never taken on the command line: give the
storage secret with --secret-file or NYX_STORAGE_SECRET, and the other
computer’s key with --key-file, NYX_ATTACH_KEY or --ask-key. In the
terminal app (TUI), press o on the Snapshots tab to step through attached
sets; attaching itself is done in the app or with the command line.
Good to know
- A set shows up in Find backup sets once it has finished its first backup. A connection file made before then still lists it, as having no snapshots yet.
- Search covers this computer’s own sets; to find a file in an attached set, browse its snapshots.
- An attached set is never one of this computer’s backups: it is not scheduled and not checked for missed backups. Its own computer looks after that.
- Attaching is not the same as importing a key at first-run setup. Importing the other computer’s key makes this computer share it, so it can read the other computer’s backups and make its own under the same key. Attaching keeps this computer’s own key and only reads the other computer’s sets.