Backups, part 1: your local copies in Server AI Hub
Backing up a DGX Spark with Server AI Hub. Part one: your local copies. We're at the bottom of the stack: the machine itself.
Chapters
- 0:00Introduction
- 0:07Where this fits: The AI stack
- 0:11Sort first: What to save
- 0:24Two different jobs: System or files
- 0:39In the app: Your copies
- 0:56In the app: System snapshots
- 1:05Roll back: Restoring overwrites
- 1:21Before the app can help: Done once, on the server
- 1:35Databases: Snapshot, then copy
- 1:45Keeping versions: Preview, then prune
- 1:55Prove it: Restore a few files
- 2:09Wrap up
Read the transcript
Introduction
Backing up a DGX Spark with Server AI Hub. Part one: your local copies.
Where this fits: The AI stack
We're at the bottom of the stack: the machine itself.
Sort first: 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.
Two different jobs: 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.
In the app: 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.
In the app: 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.
Roll back: 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.
Before the app can help: 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.
Databases: 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.
Keeping versions: 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.
Prove it: 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.
Wrap up
Next: an encrypted copy somewhere else.
Sources
- github.com/linuxmint/timeshift
- borgbackup.readthedocs.io/en/stable/quickstart.html
- borgbackup.readthedocs.io/en/stable/usage/init.html
- borgbackup.readthedocs.io/en/stable/usage/key.html
- borgbackup.readthedocs.io/en/stable/usage/extract.html
- qdrant.tech/documentation/snapshots
- docs.nvidia.com/dgx/dgx-spark/system-recovery.html
- docs.nvidia.com/dgx/dgx-spark/boot-repair.html