Playbook · DGX Spark

DGX Spark backup: local, off-site and encrypted.

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.

How to back up a DGX Spark

  1. Save what you cannot make again: your work, data, settings and database snapshots. Note the public models you can download again.
  2. On an external drive, keep an encrypted Borg backup of your files. Timeshift can roll back system files, but leaves out home folders by default.
  3. Keep a second copy off-site, encrypted on the Spark before upload, for example with restic to Wasabi or Amazon S3.
  4. Store every key away from the Spark, get told about late or failed runs, and test restores.

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

Choose a part.

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.

Part 1 of 2: Your local copies in Server AI Hub

Video, part 1: Your local copies in Server AI Hub. It covers: What to save; System or files; Your copies; System snapshots; Restoring overwrites; Done once, on the server; Snapshot, then copy; Preview, then prune; Restore a few files. Chapters and transcript
Read the words of this video

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.

Slides for this part, at your own pace:

12 steps

  1. Diagram for step 1, List what you cannot make again: What to save
    Diagram: What to save, for step 1

    Decide

    1. List what you cannot make again

    Your code, notes, data, settings, keys, and any model you trained or changed yourself.

  2. Diagram for step 2, Note what you can download again: What to save
    Diagram: What to save, for step 2

    Decide

    2. Note what you can download again

    Public models can usually be downloaded again. Write down each name and version first. A model can be changed or removed by its publisher.

  3. Diagram for step 3, Know what Timeshift is for: System or files
    Diagram: System or files, for step 3

    Decide

    3. Know what Timeshift is for

    Timeshift is for system files and settings. By default it leaves out home folders. Its own documentation says it is not a tool to protect your data.

  4. Diagram for step 4, Set up the backups once: Done once, on the server
    Diagram: Done once, on the server, for step 4

    Once

    4. Set up the backups once

    Timeshift and Borg are set up on the server before the app can show them. To do it by hand, follow the Timeshift and Borg sections further down this page.

  5. Diagram for step 5, Keep the key somewhere else: Done once, on the server
    Diagram: Done once, on the server, for step 5

    Once

    5. Keep the key somewhere else

    If you lose the passphrase, or the key, the backup cannot be opened.

    Turn encryption on, export the key, and keep it and your passphrase away from the Spark.

  6. Screen for step 6, Open Hub, then Backup: Your copies
    Screen: Your copies, for step 6

    In the app

    6. Open Hub, then Backup

    Each backup shows how long ago it ran, its size on disk and a dot for its state. STALE means the last run is too old.

  7. Screen for step 7, Check both copies, and the log: Your copies
    Screen: Your copies, for step 7

    In the app

    7. Check both copies, and the log

    Manage what's backed up shows what each backup covers, View log what happened, and Run now, on the first backup, starts a run. The app asks the server to run its own backup script.

  8. Screen for step 8, Check the system snapshots: System snapshots
    Screen: System snapshots, for step 8

    In the app

    8. Check the system snapshots

    The Timeshift rows show the age of the newest snapshot and how many are kept.

  9. Diagram for step 9, Before you ever restore the system: Restoring overwrites
    Diagram: Restoring overwrites, for step 9

    System

    9. Before you ever restore the system

    A Timeshift restore overwrites system files.

    The app does not restore a system snapshot. Save your own files first, and read the Timeshift section below.

  10. Diagram for step 10, Snapshot a Qdrant collection: Snapshot, then copy
    Diagram: Snapshot, then copy, for step 10

    Database

    10. Snapshot a Qdrant collection

    Create a snapshot of each collection, on each node of a cluster, then download it and back up that file. The commands are in the database section further down this page.

    Qdrant: snapshots

  11. Screen for step 11, Open Restore and pick files: Restore a few files
    Screen: Restore a few files, for step 11

    Prove it

    11. Open Restore and pick files

    Open a backup, choose a date under Archive, open folders and tick what you want. Verify runs a read-only check of that copy.

  12. Screen for step 12, Press Restore, then open the files: Restore a few files
    Screen: Restore a few files, for step 12

    Prove it

    12. Press Restore, then open the files

    The app asks you to confirm. The files go into a new folder under ~/restores on the server; open them there to check them.

Part 2 of 2: Off-site with Server AI Hub

Video, part 2: Off-site with Server AI Hub. It covers: Encrypt, then upload; Fast, or archived; Lose it, lose the backup; The Wasabi page; Locked means locked; Nightly, then check; Look inside the copy; Then bring it back. Chapters and transcript
Read the words of this video

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.

Slides for this part, at your own pace:

12 steps

  1. Diagram for step 1, Choose where the second copy goes: Encrypt, then upload
    Diagram: Encrypt, then upload, for step 1

    Off-site

    1. Choose where the second copy goes

    Open your own Wasabi account. Create a private bucket and an access key limited to it. You do the sign-up and sign-in yourself.

  2. Diagram for step 2, Pick a class that can be read at once: Fast, or archived
    Diagram: Fast, or archived, for step 2

    Off-site

    2. Pick a class that can be read at once

    Use Wasabi, or S3 Standard. Do not add a rule that moves these files into an archive class.

    Amazon S3 storage classes

  3. Diagram for step 3, Keep an offline copy of every secret: Lose it, lose the backup
    Diagram: Lose it, lose the backup, for step 3

    Keys

    3. Keep an offline copy of every secret

    Without the encryption password, the cloud copy cannot be read.

    The Borg key and passphrase, the cloud encryption password, your cloud sign-in and its recovery codes.

  4. Screen for step 4, Open Hub, then Wasabi: The Wasabi page
    Screen: The Wasabi page, for step 4

    In the app

    4. Open Hub, then Wasabi

    The top line shows whether it is enabled, whether keys and rclone are there, and whether the nightly sync is armed.

  5. Screen for step 5, Fill in Settings, then Buckets: The Wasabi page
    Screen: The Wasabi page, for step 5

    In the app

    5. Fill in Settings, then Buckets

    Choose the region and type your keys yourself. In Buckets, choose what goes into each one, then press Sync. Nothing runs while it is disabled.

  6. Diagram for step 6, Decide about Object Lock: Locked means locked
    Diagram: Locked means locked, for step 6

    Protect

    6. Decide about Object Lock

    Once Object Lock is enabled on a bucket, it cannot be turned off. In compliance mode, a locked version cannot be deleted before its date.

    Try it in a spare bucket first, in governance mode, with a short period.

    Amazon S3: Object Lock

  7. Diagram for step 7, Switch on the nightly sync: Nightly, then check
    Diagram: Nightly, then check, for step 7

    Every night

    7. Switch on the nightly sync

    It is a separate switch from enabling Wasabi. A sync is a mirror: what you delete on the Spark can be deleted from the copy too, so keep restic or Borg backups as well.

  8. Diagram for step 8, Check that it ran: Nightly, then check
    Diagram: Nightly, then check, for step 8

    Every night

    8. Check that it ran

    Each bucket shows its last sync. Under Log, press Tail to read what the run did.

  9. Screen for step 9, Look inside the copy: Look inside the copy
    Screen: Look inside the copy, for step 9

    Prove it

    9. Look inside the copy

    Open Browser to read the bucket, decrypted on your Mac, and check your files are there.

  10. Screen for step 10, Bring files back safely: Look inside the copy
    Screen: Look inside the copy, for step 10

    Prove it

    10. Bring files back safely

    Restoring over live files can overwrite them.

    Put anything you bring back into a new, empty folder.

  11. Diagram for step 11, Know what recovery removes: Then bring it back
    Diagram: Then bring it back, for step 11

    After a recovery

    11. Know what recovery removes

    System Recovery erases the Spark's internal drive.

    NVIDIA's System Recovery returns the system to its factory state. Check your backups before you start it, and disconnect all external storage as NVIDIA says.

    USB recovery drive guide

  12. Diagram for step 12, Bring your files back: Then bring it back
    Diagram: Then bring it back, for step 12

    After a recovery

    12. Bring your files back

    Finish first boot, update, install the tools, reconnect your drive, restore into an empty folder, then copy back only what you need. Do not copy the old system folders over the new ones.

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

The whole backup plan.

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

What to back up, and what you can download again.

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?

WhatBack it up?How
Your code, notes, documents, datasets you collected or labelledYesFile backup
Models and adapters you trained, merged or changedYesFile backup. Keep them outside download caches.
Settings: compose files, service files, scripts, environment filesYes. 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 databaseYesA snapshot or dump, then file backup of that
Data in Docker volumesYes, if you cannot rebuild itExport the volume
Public models in the Hugging Face cacheUsually 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)YesFile backup of a copy
Container imagesNot if you can pull or build them again. Keep the build files.File backup of the build files
DGX OS itselfOptionalTimeshift to roll back; System Recovery for the factory state
DGX Sparkyour files and snapshotsExternal driveBorg repository, encryptedrestic on the Sparkencrypts before uploadCloud bucketWasabi or Amazon S3Keys, elsewhereaway from Spark and drive
Two separate backups and a third place for the keys. Our own drawing.

2 · The local drive

Which external drive for a DGX Spark backup.

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.

Prepare the drive.

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.

Encryption on the local drive.

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: what it covers, and what it leaves out.

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.

PlaceIn a snapshot by default?
System files and settingsYes. This is what it is for.
Home folders, /home/USERNo. You can change this, but Timeshift advises against putting your data in snapshots, because a restore overwrites it.
The root account’s home, /rootNo
/data, /media, /mntNo
Docker’s own folder, /var/lib/docker, where named volumes normally liveNo
Other extra drives listed in /etc/fstabMany 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.

TimeshiftFile backup (Borg)System Recovery Rolls system files backHome folders left outby defaultBrings your files backMany dated versionsOnly what you includedFactory system againErases the internal driveBrings back none of your files
Timeshift, a file backup and System Recovery do different jobs, and none replaces another. Our own drawing.

Install Timeshift and take a snapshot.

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.

Roll back with Timeshift.

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.

Restore when the DGX Spark will not start.

  1. Try NVIDIA’s System Repair first.

    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.

  2. Copy your files off before restoring.

    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.

  3. Restore from the live system.

    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

Back up your DGX Spark files with Borg, encrypted.

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.

  1. Create an encrypted repository.

    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.

  2. Export the key, and keep it somewhere else.

    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.

  3. Make a backup.

    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.

  4. Check it, then restore some files.

    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.

  5. Keep versions, and prune old ones.

    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

Consistent database backups, including Qdrant snapshots.

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.

Qdrant: snapshot, list, download.

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

Removing a snapshot with a DELETE request is permanent. Check that your downloaded copy is backed up first.

Test a Qdrant restore under a new name.

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.

Other databases.

Use each one’s own method. PostgreSQL’s pg_dump, for example, makes a consistent dump while the database is in use.

Docker volumes.

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

Encrypted cloud backup to Wasabi or Amazon S3.

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.

  1. Make the bucket and an access key.

    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.

  2. Save the settings in files only you can read.

    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.

  3. Create the repository, back up and check.

    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.

  4. Restore into an empty folder.

    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.

  5. Keep versions off-site.

    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

Wasabi and Amazon S3 storage classes for backups.

Terms change, so check the providers’ pages before you choose.

WhereReading it backWatch for
Wasabi, pay-as-you-goAt 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 StandardAt onceNo minimum storage period. Downloading data can cost money.
S3 Standard-IAAt once, with a retrieval fee30-day minimum; small files billed as 128 KB. S3 One Zone-IA keeps data in one zone only.
S3 Intelligent-TieringAt once from its standard tiers. Its optional archive tiers need a restore first.A monitoring fee per object
S3 Glacier Instant RetrievalAt once, with a retrieval fee90-day minimum
S3 Glacier Flexible RetrievalRestore first: standard retrieval typically 3–5 hours, bulk 5–1290-day minimum, retrieval fees, extra stored data per object
S3 Glacier Deep ArchiveRestore first: standard retrieval typically within 12 hours, bulk within 48180-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.

A long-term copy in Deep Archive.

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

S3 Object Lock for backups, on Amazon S3 and Wasabi.

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 S3Wasabi
When can it be enabled?On a new bucket or an existing oneOnly when the bucket is created, with versioning
Governance modeUsers with a special bypass permission can lift or deleteThe root user, or a user given the bypass permission, can
Compliance modeNo user can delete a locked version before its date
NoteA legal hold has no end date until someone removes itWasabi’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

Schedule DGX Spark backups, and notice late or failed runs.

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

Timer and service files, in ~/.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

Test a restore, including after a DGX Spark system recovery.

A backup you have never restored is a hope. This rhythm is our advice.

How oftenTest
MonthlyRestore a few files from the local and the off-site backup into empty folders and open them.
Every few monthsRestore 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-upOn another computer, using only your offline copies of the keys and sign-ins, open the off-site backup and restore something.

After a system recovery.

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.

  1. Set the Spark up again.

    Finish first boot (headless setup) and update it. Set up remote access again if you used it.

  2. Install the tools and bring back your secrets.

    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.

  3. Restore into an empty folder, then copy back.

    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.

  4. Restore databases and download models.

    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

Where backup keys live, and what losing them means.

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.

SecretIf you lose it
Borg passphraseThe 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 passwordrestic says the data cannot be recovered. You can add a second password beforehand with restic key add.
rclone crypt password and saltThe encrypted copy cannot be read.
LUKS drive passphrase, if you use oneThe drive cannot be unlocked.
Cloud sign-in, two-step method and recovery codesYou may be unable to reach the stored copy at all.
Cloud access keyMake a new one from your account. If it leaked, disable the old one.

12 · Problems

DGX Spark backup problems, by symptom.

What you seeWhat to check
“backup drive not there”, or the repository is not foundRun 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 inCheck lingering: loginctl show-user USER and systemctl --user list-timers.
Works by hand, fails on the timerRead 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 lockAnother restic job may be running. Check that first. Follow restic’s documentation before removing a stale lock.
The drive or bucket keeps fillingPreview 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 classThe objects must be restored before they can be read. Check for a lifecycle rule moving them.
Backups are very slowCheck the drive’s USB speed with lsusb -t. For the cloud, your upload speed sets the first run.
A Qdrant snapshot will not restoreCompare versions: same minor version or the next one. On a cluster, check you used each node’s own snapshot.

Next

Keep going.

About Server AI Hub

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.

See what Server AI Hub does

Sources

Check the makers’ own pages.

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.