Home/Guides/How to back up data on a remote Mac mini: a daily routine for developers

How to back up data on a remote Mac mini: a daily routine for developers

Updated · airankrush

What this guide covers

After this guide every kind of data on the machine has a fixed destination, and if you lose the machine you can rebuild your working environment elsewhere. You need your own code repository and a cloud drive or object storage account.

Steps

  1. Sort your data by whether it can be rebuilt

    • Can be rebuilt: installed software, dependency packages, build caches. You do not need to back up the things themselves, only a manifest.
    • Cannot be rebuilt: the code and documents you wrote, uncommitted changes, data in databases, personal settings inside apps, keys of every kind. These must go off the machine.

    Spend ten minutes writing down the second group item by item. Each step below covers one of them.

  2. Code: push at the end of every stretch of work

    The only reliable way to keep code off the machine is to push it to your own remote repository. Before you stop for the day, check three places that are easy to miss: git status for uncommitted changes, git stash list for forgotten changes in the stash, and git branch -vv for local branches that have no remote branch yet. Unfinished work can go to a personal branch. It does not have to wait until it is done.

  3. Environment: keep a manifest you can rebuild from

    For tools installed with Homebrew, brew bundle dump exports a Brewfile, and on another machine brew bundle installs them all again. Put your terminal and editor configuration files in a dedicated repository. Write language runtime versions into the project's own version file. Push the manifest files along with the code, and keep keys and tokens out of them.

  4. Documents and build output: sync to your own cloud drive

    Sync design files, documents and built installers out with your own cloud drive client or your object storage's command-line tool. Watch for one situation: the cloud drive client shows a synced icon, but the file is only a placeholder and the content has not really been uploaded. For important files, open them in the web interface or on another device to confirm.

  5. Databases and app data: export first, then upload

    Copying the data files of a running database can give you a corrupted copy. Use the database's own export command to produce a dump file, then move the dump file off the machine. The same applies to data in desktop apps: prefer the app's export function over copying its library folder. Put the date in the export file name and keep the last few.

  6. Keys: into the password manager, not into the backup bundle

    Access tokens, signing certificate passwords and SSH private keys should not be bundled with ordinary files and uploaded to a cloud drive. They belong in your password manager, or you issue new ones when you need them. In the backup, record only which keys are needed and where to get them again.

  7. An external drive is not the default option

    The machine is at a deployment site in the United States, and you cannot plug a drive into it yourself. If you need an external SSD, whether you ship your own or ask us to buy one, first confirm the port, capacity, cost and delivery arrangements with support. Do not ship first and sort out the paperwork afterwards. Also, an external drive sits in the same place as the machine, and you still have to get the data off it when the rental ends. So day-to-day backup should rely mainly on the cloud and repositories.

  8. Restore on another device from time to time

    A backup you have never restored from is only a "possible backup". Every so often, on your own computer, clone the repository, install the tools from the Brewfile, open a few documents and import a database dump. If you can carry on working somewhere else, the routine is complete.

FAQ

If the hardware fails, can the platform get my data out?

We do not promise that data can be retrieved from a failed machine, and the platform keeps no copy. If the machine is unreachable and your data is still on it, contact support and explain, but plan your backups on the assumption that it cannot be retrieved.

Does having iCloud Drive sync turned on count as a backup?

Only half. Sync carries deletions and overwrites across too, so a file deleted by mistake disappears on the other side as well. It is good for picking up work on another device, and not suitable as your only historical record.

How often should I back up?

Decide by how much work you can afford to lose. Push code at the end of every stretch of work, let the cloud drive sync documents in real time, and export the database after its data has changed in substance. Do not leave it all until just before the rental ends.

Can I use Time Machine?

Time Machine needs a backup disk. An external disk has to be arranged with support first, as described above. Without a backup disk, the combination of repository and cloud drive already covers the main data in a development setup.

Can support see my files while I back up?

The platform does not record screen content or the content of your business data, and does not access device content on its own initiative, but necessary connection, operation and security monitoring exists. See Can the provider see the code on my machine?.

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All guides