Playbook · DGX Spark
What to save, a local copy you can restore from, an encrypted copy somewhere else, and how to prove that both work.
Two things lose data. If you lose a backup’s passphrase or key, nobody can open it. And several commands here, such as a restore over files, formatting a drive or pruning old versions, remove data. Each has a warning before it.
Checked on 26 November 2026 against: Timeshift's documentation and source; Borg 1.4 and restic stable documentation; Qdrant, Amazon S3, Wasabi, rclone and NVIDIA DGX Spark pages. We have not yet run this playbook start to finish on our own hardware.
Watch, or step through
Both walkthroughs use the Server AI Hub pages for backups. Each part has a short video and its own slides, with each warning before the step it is about. Press Next step when you are ready. The page remembers your place.
Back up your DGX Spark. Backing up a DGX Spark with Server AI Hub. Part one: your local copies.
The AI stack. We're at the bottom of the stack: the machine itself.
What to save. Save what you can't make again: your work, data and settings. Databases need their own snapshot. Public models can usually be downloaded again. Write down their names and versions.
System or files. Timeshift saves system files, so you can roll the system back. By default it leaves out home folders. Borg saves your files, with versions. NVIDIA's recovery is different again: it erases the internal drive.
Your copies. In Server AI Hub, open Hub, then Backup. Each backup shows how long ago it ran, its size, and a dot for its state. Here each home folder has two copies, on two separate drives. View log shows what happened, and Run now starts the first one.
System snapshots. Further down are the Timeshift system snapshots: how old the newest one is, and how many are kept. An old one is marked stale.
Restoring overwrites. Careful: a restore overwrites system files, so save your own files first. If the system won't start, try NVIDIA's repair steps first. Timeshift's own way is to restore from an Ubuntu live stick. Making that stick erases it.
Done once, on the server. Setting up Timeshift and Borg is done once, on the server. The app doesn't do that part. Turn encryption on. Export the key, and keep it and your passphrase away from the Spark. Lose them, and the backup can't be opened.
Snapshot, then copy. Don't just copy a database while it's running. With Qdrant, create a snapshot, on each node. Then download it, and back up that file.
Preview, then prune. Old versions are removed by pruning. Always run it as a dry run first. Read what it will remove. Then compact to free the space.
Restore a few files. Now test it. Open Restore, open a backup, pick a date, and tick the files you want. Press Restore. The files go into a new folder, so nothing live is overwritten. Verify checks a copy, and only reads it.
A local copy you have tested. Next: an encrypted copy somewhere else.
12 steps
Off-site and encrypted. Part two: a copy somewhere else, encrypted before it leaves, and tested.
Encrypt, then upload. A drive beside the Spark can be lost along with it. So keep a second copy off-site. Server AI Hub uses rclone, which encrypts on your Spark before uploading.
Fast, or archived. Wasabi and S3 Standard can be read back at once. S3 Deep Archive must be restored before you can read it, which takes hours. Don't move this synced backup into an archive class.
Lose it, lose the backup. Keep your passphrases and the Borg key away from the Spark. Keep the cloud encryption password, your sign-in and its recovery codes there too.
The Wasabi page. Create your bucket and access key yourself. Then, in Server AI Hub, open Hub, then Wasabi. In Settings, choose the region and type your keys yourself. Buckets holds what goes into each one, and Sync uploads it. The top line shows whether it's on.
Locked means locked. Object Lock stops stored versions being deleted for a set period. Think first. Once enabled on a bucket, it can't be turned off. In compliance mode, nobody can delete a locked version early.
Nightly, then check. The nightly sync is its own switch, and nothing runs until you turn it on. Each bucket shows when it last synced, and the log shows what the run did. Look, so a missed run gets noticed.
Look inside the copy. To test the cloud copy, open Browser. It reads the bucket, decrypted on your Mac, even with the Sparks off. Check your files are really there. If you bring files back, put them in a new, empty folder, never over your live files.
Then bring it back. NVIDIA's system recovery erases the internal drive, so test your restore before you ever need it. Afterwards: set up, install the tools, restore into an empty folder, then copy back what you need.
Restored means backed up. The steps and the fixes are on this page.
12 steps
Pictures marked as screens are real Server AI Hub pages showing sample data. The drawings are our own illustrations, not the makers’ screens. Setting up Timeshift and Borg is done on the server, outside the app; the commands for doing each job by hand are in the sections below.
On this page
Written from the makers’ own documentation, read on 26 November 2026 and linked below. We have not run these commands on a DGX Spark for this guide. Try each one on test data first. USER, BUCKET, my_collection, /dev/sdX1 and the drive paths are made-up examples: put in your own.
1 · Sort first
This sorting is our advice. The question for each thing is: if the Spark were gone tonight, could you make it or fetch it again?
| What | Back it up? | How |
|---|---|---|
| Your code, notes, documents, datasets you collected or labelled | Yes | File backup |
| Models and adapters you trained, merged or changed | Yes | File backup. Keep them outside download caches. |
| Settings: compose files, service files, scripts, environment files | Yes. They can hold passwords, so the backup must be encrypted. | File backup. Files under /etc need their own run with administrator rights. |
| Databases, including a Qdrant vector database | Yes | A snapshot or dump, then file backup of that |
| Data in Docker volumes | Yes, if you cannot rebuild it | Export the volume |
| Public models in the Hugging Face cache | Usually not. Write down each name and version. | Download again. The default cache is ~/.cache/huggingface/hub, unless HF_HOME or HF_HUB_CACHE moves it. |
| A model you could not get again (removed, access ended, or slow to fetch) | Yes | File backup of a copy |
| Container images | Not if you can pull or build them again. Keep the build files. | File backup of the build files |
| DGX OS itself | Optional | Timeshift to roll back; System Recovery for the factory state |
2 · The local drive
We suggest one 4 TB or one 8 TB drive for one DGX Spark, and two 8 TB drives (recommended) for two. These connect by USB. A backup on one drive in the same room is not enough on its own, so keep an off-site copy too. Check the link speed after every restart with lsusb -t.
Formatting a drive erases everything on it. Check the drive’s name and size twice, and unplug other external drives first.
Timeshift and the Borg examples here expect a Linux file system, such as ext4. If your drive does not have one, Ubuntu’s Disks app can format it. A drive that already holds data you want is not the place to try. These commands only look:
lsblk -f
findmnt /media/USER/backup-drive
Our advice for a Spark with no screen: a desktop usually connects external drives when you sign in. Without that, you must set the drive to mount at start-up yourself. We have not checked how DGX OS does this, so test it with a restart before you rely on a timer.
A drive can be picked up and carried away. A Borg repository created with an encryption mode is encrypted on its own, whatever the drive is. A Timeshift snapshot is different: the Timeshift documentation we read describes no encryption of its own for snapshots, so treat anyone holding that drive as able to read the system files in them, including settings under /etc.
To encrypt a whole partition, Linux has LUKS, which the Disks app offers when formatting.
Setting up an encrypted partition formats it and erases what is there. If you forget its passphrase, the data cannot be read. An encrypted drive also has to be unlocked after a restart before an unattended backup can write to it. We have not tested Timeshift with an encrypted destination.
3 · System snapshots
Timeshift takes snapshots of system files and settings so you can roll back after a bad change. Its documentation says plainly that it is not a backup tool and is not meant to protect your data.
| Place | In a snapshot by default? |
|---|---|
| System files and settings | Yes. This is what it is for. |
Home folders, /home/USER | No. You can change this, but Timeshift advises against putting your data in snapshots, because a restore overwrites it. |
The root account’s home, /root | No |
/data, /media, /mnt | No |
Docker’s own folder, /var/lib/docker, where named volumes normally live | No |
Other extra drives listed in /etc/fstab | Many mount points are left out. Check yours; do not assume. |
The folder list comes from Timeshift’s source code as it was on 26 November 2026. The version Ubuntu packages may differ, so look at the filters in your own copy.
Docker. Timeshift’s documentation says Docker and containerised systems are not supported and that results are unpredictable. NVIDIA’s container runtime page shows the DGX Spark set up to use Docker. We have not tested what this means on a DGX Spark. Do not treat Timeshift as your only way back.
DGX OS 7 is based on Ubuntu 24.04 (check yours with cat /etc/os-release). That release has a Timeshift package for Arm. We have not tested it on a DGX Spark. It has two modes. RSYNC works on all systems; BTRFS needs a particular BTRFS disk layout, so these steps use RSYNC. The destination can be an external Linux partition, which Timeshift recommends.
sudo apt install timeshift
sudo timeshift --list-devices
sudo timeshift --create --rsync --snapshot-device /dev/sdX1 --comments "before update"
sudo timeshift --list
It worked if the new snapshot appears in the list. Timeshift can also take snapshots on a schedule (hourly, daily, weekly, monthly or at start-up) and keep a set number of each; set that in its window.
Deleting snapshots is permanent. timeshift --delete-all removes every one. Timeshift’s documentation says to delete snapshots before uninstalling it, or they keep using space.
A restore overwrites system files and restarts the Spark. Stop your work, back up your files first, and check the snapshot date, the target drive and the boot loader (GRUB) choice before you confirm. A wrong choice can leave the Spark unable to start.
sudo timeshift --list
sudo timeshift --restore
With no other options it asks you for each choice. To undo a change you made, that is the whole job; afterwards check that the system starts, your drives are there and your containers run. Our understanding is that a file snapshot does not roll back device firmware.
System Repair can start an earlier system version, or use an Ubuntu Desktop Arm 64-bit stick with Try Ubuntu to reach the internal drive and copy your files off.
Making the Ubuntu stick erases that stick.
Copy anything not already backed up to a different drive, not the one that holds your snapshots, and check the copy.
This overwrites the installed system. Check the target is the Spark’s internal system partition and not a backup drive.
Timeshift’s documentation says to start an Ubuntu live system, install Timeshift on it, and restore the snapshot to the installed system. If the installed system uses EFI, as the DGX Spark’s UEFI start-up suggests, start the live system in EFI mode.
Not tested by us. We have not done a Timeshift restore on a DGX Spark, from the running system or a live stick, and we found no NVIDIA page about it. If it fails, NVIDIA’s System Recovery returns the factory system, erasing the internal drive.
4 · File backup
Borg keeps dated archives in a repository and stores repeated data once. Ubuntu 24.04 packages Borg 1.2; the pages linked here describe the newer stable 1.4. Check borg --version and read the pages for yours.
sudo apt install borgbackup
borg init --encryption=repokey-blake2 /media/USER/backup-drive/borg-repo
With repokey modes the key is kept, protected by your passphrase, inside the repository. With keyfile modes it is kept in your home folder instead. Do not choose none. The mode cannot be changed later; the passphrase can.
borg key export /media/USER/backup-drive/borg-repo ~/borg-key.txt
borg key export --paper /media/USER/backup-drive/borg-repo ~/borg-key-paper.txt
Lose the passphrase or the key and the backup cannot be opened. The export does not contain the passphrase. You need both, so store both away from the Spark and the drive, then remove the copies on the Spark once you have checked the stored ones.
borg create --stats --exclude-caches \
--exclude 'home/USER/.cache/huggingface/hub' \
/media/USER/backup-drive/borg-repo::'{hostname}-{now}' /home/USER
Run Borg as the same user every time. Leave out the downloaded-model line if you want those models saved. Borg also needs free space on the drive, even to delete. It worked if the command ends without errors and borg list shows the archive. Borg’s exit code 0 means success, 1 a warning and 2 an error: read the log for anything but 0.
borg list /media/USER/backup-drive/borg-repo
borg check --verify-data /media/USER/backup-drive/borg-repo
borg extract --dry-run --list /media/USER/backup-drive/borg-repo::NAME
--verify-data reads everything and can take a very long time. --dry-run reads and decrypts an archive without writing files.
borg extract writes into the folder you are in. In your home folder or / it can overwrite live files. Always make an empty folder and go into it first.
mkdir ~/restore-test && cd ~/restore-test
borg extract --list /media/USER/backup-drive/borg-repo::NAME home/USER/Documents
Open the files. That, not the backup log, is the proof.
Do not run borg check --repair casually. Borg calls it potentially dangerous: it can lose data. Copy the repository first and read Borg’s page.
Versions let you go back to before a mistake that you noticed late. These numbers (7 daily, 4 weekly, 6 monthly) are the example in Borg’s quick start, not a rule. Preview first:
borg prune -v --list --dry-run -a '{hostname}-*' \
--keep-daily 7 --keep-weekly 4 --keep-monthly 6 /media/USER/backup-drive/borg-repo
Pruning permanently removes backup versions. Run the next lines only after reading the preview. A wrong -a pattern can include archives you did not mean.
borg prune -v --list -a '{hostname}-*' \
--keep-daily 7 --keep-weekly 4 --keep-monthly 6 /media/USER/backup-drive/borg-repo
borg compact /media/USER/backup-drive/borg-repo
Space is freed only when compact runs.
5 · Databases
A file backup reads files one after another. If a database is writing at the same time, the copy may not match itself. Use the database’s own snapshot or dump, or stop it first. Stopping a service interrupts whatever uses it.
These examples use Qdrant on the same machine at localhost:6333. Leave out the api-key header if yours has none. A collection snapshot holds one collection on one node. On a cluster, take and keep one from each node.
curl -sf -X POST -H "api-key: $QDRANT_API_KEY" \
http://localhost:6333/collections/my_collection/snapshots
curl -sf -H "api-key: $QDRANT_API_KEY" \
http://localhost:6333/collections/my_collection/snapshots
mkdir -p ~/db-backups
curl -sf -H "api-key: $QDRANT_API_KEY" -o ~/db-backups/my_collection.snapshot \
http://localhost:6333/collections/my_collection/snapshots/SNAPSHOT_NAME
POST /snapshots) does, but is for single-node installs only, and restoring it is done as Qdrant starts./qdrant/snapshots in its Docker image) and use disk space until removed.Removing a snapshot with a DELETE request is permanent. Check that your downloaded copy is backed up first.
With priority=snapshot the snapshot wins over data already there. Never aim a test at a live collection. Use a new name that does not exist, and check there is enough free disk and memory for a second copy. A separate test machine is safer still.
curl -sf -X POST -H "api-key: $QDRANT_API_KEY" \
-F 'snapshot=@/home/USER/db-backups/my_collection.snapshot' \
'http://localhost:6333/collections/restore_test/snapshots/upload?priority=snapshot'
The new collection is created for you. It worked if its number of points matches the original at the time of the snapshot and a search you know gives sensible results. Then remove only the test collection, after reading its name twice.
Use each one’s own method. PostgreSQL’s pg_dump, for example, makes a consistent dump while the database is in use.
Docker’s volume page shows how to pack a volume into a tar file with a temporary container, and how to unpack it again. Stop whatever writes to the volume first (that interrupts it), back up the tar file, and test unpacking into a new volume, not the live one: unpacking overwrites files with the same names.
6 · Off-site
Encryption that happens in the cloud protects the provider’s disks, but the provider handles the readable data. Client-side encryption encrypts on your Spark, before upload. We use restic here: it is publicly documented and encrypts its repository.
restic’s design notes say that apart from its key files, everything stored in the repository is encrypted, and stored files have coded names. It does not hide everything: key files show details such as the computer name, user name and creation time, and someone with access to the storage can estimate the backup’s size and when it changed. Someone who can write there can also delete your backups.
Why not just copy the Borg repository to the cloud? Borg’s FAQ recommends two separate repositories, because a copy carries any damage with it. If you copy one anyway, follow the FAQ: no backup may be running (borg with-lock), and never use Borg on both copies.
Ubuntu 24.04 packages restic 0.16. The stable documentation is newer: some exit codes and restore options on those pages need a newer release. Check restic version.
In your own Wasabi or AWS account, create a private bucket and an access key limited to that bucket. You sign up, sign in and accept the terms yourself. Turn on two-step sign-in. If you want Object Lock, read that section before creating the bucket.
mkdir -p ~/.config/backup && chmod 700 ~/.config/backup
nano ~/.config/backup/borg-pass # your Borg passphrase, one line
nano ~/.config/backup/restic-pass # a different long password, one line
nano ~/.config/backup/env
chmod 600 ~/.config/backup/*
The env file, with your own values. The Amazon S3 line shows the US East region as restic’s page does. For Wasabi, use the service URL for your bucket’s region.
export BORG_REPO=/media/USER/backup-drive/borg-repo
export BORG_PASSCOMMAND="cat /home/USER/.config/backup/borg-pass"
export RESTIC_PASSWORD_FILE=/home/USER/.config/backup/restic-pass
export RESTIC_REPOSITORY=s3:s3.us-east-1.amazonaws.com/BUCKET
# Wasabi instead: s3:https://WASABI-SERVICE-URL/BUCKET
export AWS_ACCESS_KEY_ID=YOUR-KEY-ID
export AWS_SECRET_ACCESS_KEY=YOUR-SECRET-KEY
What this does not protect against. So that backups can run unattended, the passwords sit on the Spark. Anyone with administrator rights on it can read them. They protect a stolen drive or the cloud copy, not a Spark someone already controls.
Without this password nobody can open the cloud backup. Save it away from the Spark before the first backup.
sudo apt install restic
. ~/.config/backup/env
restic init
restic backup /home/USER --exclude-caches --exclude /home/USER/.cache/huggingface/hub
restic snapshots
restic check
Run init once. It worked if snapshots lists your backup and check reports no errors. check tests the structure without reading all the stored data. restic check --read-data-subset=5% also reads a random part; reading data back from the cloud can cost money.
Restoring over existing files can overwrite them. Use a new, empty folder, never / or your live home folder.
restic restore latest --target ~/restore-test --include /home/USER/Documents
Open the files and compare a few with the originals.
restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --dry-run
Without --dry-run this removes snapshots, and with --prune it deletes their data for good. Read the preview first.
restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --prune
restic check
Pruning locks the repository, so do not run it at backup time.
Deleting a bucket, or the files in it, removes your off-site backup. Never tidy files inside a backup repository by hand, and check the bucket twice before emptying or deleting anything.
7 · Storage classes
Terms change, so check the providers’ pages before you choose.
| Where | Reading it back | Watch for |
|---|---|---|
| Wasabi, pay-as-you-go | At once. No download or request fees within its fair-use rules, for example monthly downloads no larger than what you store. | Bills at least 1 TB, each stored file for at least 90 days, and very small files as 4 KB. Other plans differ. |
| S3 Standard | At once | No minimum storage period. Downloading data can cost money. |
| S3 Standard-IA | At once, with a retrieval fee | 30-day minimum; small files billed as 128 KB. S3 One Zone-IA keeps data in one zone only. |
| S3 Intelligent-Tiering | At once from its standard tiers. Its optional archive tiers need a restore first. | A monitoring fee per object |
| S3 Glacier Instant Retrieval | At once, with a retrieval fee | 90-day minimum |
| S3 Glacier Flexible Retrieval | Restore first: standard retrieval typically 3–5 hours, bulk 5–12 | 90-day minimum, retrieval fees, extra stored data per object |
| S3 Glacier Deep Archive | Restore first: standard retrieval typically within 12 hours, bulk within 48 | 180-day minimum, retrieval fees, extra stored data per object. Many small files cost more. |
Our advice: keep the restic repository in Wasabi or S3 Standard. restic needs to read its files, and archived files cannot be read until restored. Do not add a lifecycle rule that moves them into Glacier Flexible Retrieval or Deep Archive. The restic pages we read do not describe using those classes, and we have not tested the other classes with it.
For a copy you hope never to read, make a separate dated archive: ideally a few large files. rclone crypt encrypts file contents and, by default, file and folder names before upload. It does not hide sizes, times or the shape of the folders. Set up an S3 remote and then a crypt remote on top of it with rclone config (here called secret:). rclone’s S3 page lists the storage class names.
Keep both rclone passwords (the password and the salt) somewhere else. Without them the data cannot be read. The passwords in rclone’s settings file are only scrambled, not encrypted, unless you set a password for that file. And use copy, not sync: sync deletes files at the destination, and copy replaces ones that differ. Use a new dated folder each time.
rclone copy /home/USER/archive-2026-11 secret:archive-2026-11 --s3-storage-class DEEP_ARCHIVE
To get it back, first ask S3 to restore the objects (see retrieval options), wait, then download them through the crypt remote. Practise the whole round trip once with a small file. rclone offers cryptcheck to compare an encrypted copy; we have not checked it against archived objects, so try your set-up in a normal class first.
8 · Protect against deletion
If someone gets your Spark’s access key, they may try to delete the off-site copy. Object Lock stops a stored version from being deleted or overwritten until its date. It needs versioning. It does not stop newer versions or “delete markers” being added, so files can look deleted while the locked versions are still there.
Think before you turn it on. Once Object Lock is enabled on an S3 bucket, it cannot be turned off and versioning cannot be suspended. In compliance mode nobody, including the account’s root user, can delete a locked version early or shorten its period; AWS says the only way is to delete the account. Locked data stays stored, so expect to keep paying for it.
| Amazon S3 | Wasabi | |
|---|---|---|
| When can it be enabled? | On a new bucket or an existing one | Only when the bucket is created, with versioning |
| Governance mode | Users with a special bypass permission can lift or delete | The root user, or a user given the bypass permission, can |
| Compliance mode | No user can delete a locked version before its date | |
| Note | A legal hold has no end date until someone removes it | Wasabi’s separate “Compliance” bucket feature cannot be used on an Object Lock bucket |
restic and Object Lock: test it yourself. The restic documentation we read does not cover Object Lock. restic removes its own lock files, and pruning deletes data. From AWS’s rules, we expect that on a versioned bucket a plain delete only adds a marker: older versions stay, space is not freed, and getting back after an attack means returning to earlier versions. We have not tested any of this. Try it in a spare bucket, in governance mode, with a short period, including a recovery after deleting. Our advice: give the Spark’s key no permission to delete object versions, bypass governance or change the bucket’s settings, and keep the administrator sign-in off the Spark.
9 · Every day
The dangerous backup is the one that stopped weeks ago without anyone knowing. The scripts below are our own example and have not been run on a DGX Spark. They record a time only when every step succeeds, and a second timer complains if that time gets old.
Make the folders first.
mkdir -p ~/bin ~/.config/systemd/user
~/bin/backup.sh#!/bin/bash
. "$HOME/.config/backup/env"
state="$HOME/.local/state/backup"
mkdir -p "$state"
# Add your database snapshot commands here, and stop if one fails.
if test -f "$BORG_REPO/config"; then
borg create --stats --exclude-caches --exclude "${HOME#/}/.cache/huggingface/hub" \
"::{hostname}-{now}" "$HOME"
b=$?
else
echo "backup drive not there" # the off-site copy still runs
b=2
fi
restic backup "$HOME" --exclude-caches --exclude "$HOME/.cache/huggingface/hub"
r=$?
echo "borg=$b restic=$r"
if [ "$b" -eq 0 ] && [ "$r" -eq 0 ]; then
date -Is > "$state/last-success"
else
exit 1
fi
Anything but 0 counts as failed, including warnings: restic uses 3 when it could not read some files. Read the log and fix the cause. If your Qdrant needs a key, keep that in the env file too.
~/bin/check-late.sh#!/bin/bash
# 1560 minutes is 26 hours: one day, plus some slack.
f="$HOME/.local/state/backup/last-success"
if [ -z "$(find "$f" -mmin -1560 2>/dev/null)" ]; then
echo "no good backup in the last 26 hours"
exit 1
fi
~/.config/systemd/user/# backup.service
[Unit]
Description=Backup
OnFailure=backup-alert.service
[Service]
Type=oneshot
ExecStart=%h/bin/backup.sh
# backup.timer
[Timer]
OnCalendar=daily
Persistent=true
RandomizedDelaySec=30min
[Install]
WantedBy=timers.target
# check-late.service
[Unit]
Description=Is the backup late?
OnFailure=backup-alert.service
[Service]
Type=oneshot
ExecStart=%h/bin/check-late.sh
# check-late.timer
[Timer]
OnCalendar=*-*-* 09:00
Persistent=true
[Install]
WantedBy=timers.target
# backup-alert.service (tell-me.sh is your own: email, chat or another alert you will see)
[Unit]
Description=Report a backup problem
[Service]
Type=oneshot
ExecStart=%h/bin/tell-me.sh
Save each block as its own file, named as in its first comment. Write tell-me.sh yourself and test it: an alert that goes only to a log is easy to miss.
chmod 700 ~/bin/backup.sh ~/bin/check-late.sh ~/bin/tell-me.sh
~/bin/backup.sh
systemctl --user daemon-reload
systemctl --user enable --now backup.timer check-late.timer
sudo loginctl enable-linger USER
systemctl --user list-timers
journalctl --user -u backup.service -n 50
Persistent=true runs a missed job when the timer next starts. Lingering lets your timers run while you are signed out. To undo: systemctl --user disable --now backup.timer check-late.timer, and sudo loginctl disable-linger USER if nothing else needs it.
A Spark that is off cannot report itself. Our advice: also check from another machine or a service you trust that a fresh backup arrived, and look at the dates yourself now and then. Test the alert by making a run fail on purpose, for example with the backup drive unplugged after ejecting it safely.
10 · Prove it
A backup you have never restored is a hope. This rhythm is our advice.
| How often | Test |
|---|---|
| Monthly | Restore a few files from the local and the off-site backup into empty folders and open them. |
| Every few months | Restore a database snapshot under a test name. Read back part of the stored data with borg check or restic check. |
| Yearly, and after changing the set-up | On another computer, using only your offline copies of the keys and sign-ins, open the off-site backup and restore something. |
NVIDIA’s System Recovery erases the Spark’s internal drive and returns it to the factory system. Before you start: make a last backup if you can, restore a test file from it, check you hold every key away from the Spark, and disconnect all external storage, backup drives included, as NVIDIA says. See our USB recovery drive guide.
Finish first boot (headless setup) and update it. Set up remote access again if you used it.
Install Borg and restic, then recreate the settings files from your offline copies. For a keyfile Borg repository, import the exported key with borg key import.
borg key import can overwrite an existing key file. Check which repository you name.
Reconnect the backup drive, or use the off-site copy. Do not start the scheduled backup or any pruning yet. Copy back your own files. Do not pour the old /etc over the new system: compare, and bring across only what you need.
Load database snapshots into a matching version, download public models again from your list, then check that your own programs work.
We have not yet done this full recovery-and-restore ourselves for this guide.
11 · Keys
Our advice: keep two offline copies in two places, for example a password manager you can reach without the Spark and a printed copy somewhere safe. A copy that exists only on the Spark, or only inside the backup it opens, is no use after a loss.
| Secret | If you lose it |
|---|---|
| Borg passphrase | The repository cannot be opened. |
| Borg key (exported copy) | Needed if the key in the repository is damaged, or the key file of a keyfile repository is gone. Without any copy of the key, the backup cannot be opened. |
| restic password | restic says the data cannot be recovered. You can add a second password beforehand with restic key add. |
| rclone crypt password and salt | The encrypted copy cannot be read. |
| LUKS drive passphrase, if you use one | The drive cannot be unlocked. |
| Cloud sign-in, two-step method and recovery codes | You may be unable to reach the stored copy at all. |
| Cloud access key | Make a new one from your account. If it leaked, disable the old one. |
12 · Problems
| What you see | What to check |
|---|---|
| “backup drive not there”, or the repository is not found | Run findmnt on the drive path. It may not mount when nobody is signed in, or its path may have changed. Do not create a new repository to make the message go away. |
| The timer works only while you are signed in | Check lingering: loginctl show-user USER and systemctl --user list-timers. |
| Works by hand, fails on the timer | Read journalctl --user -u backup.service. Check the paths in the env file are full paths and the files are readable by you. |
| Files skipped with “permission denied” | Some files, such as those made by containers, may belong to another user. Decide how to back them up; do not change ownership blindly, and do not mix users on one Borg repository. |
| restic cannot take the lock | Another restic job may be running. Check that first. Follow restic’s documentation before removing a stale lock. |
| The drive or bucket keeps filling | Preview pruning; Borg frees space only after compact. Look for large caches and old database snapshots. With Object Lock or versioning, deleted data may still be stored. |
| Cloud reading fails, naming an archive storage class | The objects must be restored before they can be read. Check for a lifecycle rule moving them. |
| Backups are very slow | Check the drive’s USB speed with lsusb -t. For the cloud, your upload speed sets the first run. |
| A Qdrant snapshot will not restore | Compare versions: same minor version or the next one. On a cluster, check you used each node’s own snapshot. |
Next
Server AI Hub is our app for looking after a DGX Spark. You do not need it to follow this playbook. It is coming soon to the App Store and the Microsoft Store.
Sources
General guidance only, in our own words. Test on data you can afford to lose; you use these steps at your own risk. NVIDIA and DGX Spark are trademarks of NVIDIA Corporation. Amazon S3 and AWS, Wasabi, Qdrant, Docker, Hugging Face, PostgreSQL, Borg, restic, rclone, Timeshift, Ubuntu and other names belong to their owners. 6ixLabs is not affiliated with or endorsed by any of them.