VPS Snaps

Secure access: the vpssnaps user

Secure access runs VPS Snaps on your server as a limited vpssnaps user: a fixed list of commands, no shell, one sudo rule for one helper, and logins locked to our two addresses.

Last updated: November 2026

What Secure Access Is

With Secure access, VPS Snaps never logs in to your server as root. It logs in as a limited user, vpssnaps, with a key made for that one server. That user can only ask for the commands listed on this page. It has no shell, no terminal and no file transfer, and it can't forward ports.

The few jobs that need root, like reading other users' files for a backup or running a database dump, go through one program, the helper, and sudo allows that program and nothing else. The helper checks every request again, as root, before it does anything.

This is enforced on your server, not by us behaving well. If someone stole the key and sent requests from one of our own addresses, they would still get only this list.

Everything It Can Do

This is the complete list. The server refuses anything else, and so does any argument not listed for its command. Values are checked by type: paths must be absolute and plain, names can't start with a dash, and nothing is ever passed to a shell.

CommandRuns asWhat it does
versionvpssnapsReport the installed version. Changes nothing.Writes: nothing
selftestroot, via the helperCheck the installation itself: file owners and modes, the sudoers line, the sshd settings and the config files. Changes nothing.Writes: nothing
inventory
  • --hash (optional)
root, via the helperRead what is installed, for vulnerability alerts: OS release, kernel running and installed, packages and their versions, whether a reboot is pending, automatic updates, nginx's HTTP/2 setting, failed services and free disk. Changes nothing.Writes: nothing
updates-checkroot, via the helperRefresh the package lists (apt-get update) and list the updates available. Installs nothing.Writes: apt's package lists under /var/lib/apt/lists, as apt-get update always does
paths-check
  • --path <path> …
root, via the helperSay which of a backup job's paths exist, which are missing, and which are outside /etc/vpssnaps/backup-paths.conf. Changes nothing.Writes: nothing
files-stream
  • --path <path> …
  • --exclude <glob> … (optional)
  • --no-sqlite (optional)
root, via the helperArchive files and folders for a backup: a gzipped tar on stdout of paths under /etc/vpssnaps/backup-paths.conf only, with live SQLite databases copied safely first (into a root-only folder under /var/tmp, removed afterwards).Writes: temporary SQLite copies in /var/tmp/vpssnaps-sqlite, removed when the archive is done
db-dump
  • --engine postgres|mysql|mariadb|mongodb
  • --db <name>
  • --host <host> (optional)
  • --port <int> (optional)
  • --user <name> (optional)
  • --auth-db <name> (optional)
  • --password <secret> (optional)
root, via the helperDump one database for a backup, gzipped, on stdout: pg_dump, mysqldump or mongodump. The password travels on the helper's stdin and reaches the tool through a private file or its environment, never a command line.Writes: nothing
backup-direct
  • --target s3|drive|dropbox|box|onedrive
  • --part-size <int> (optional)
  • --ceiling <int>
  • --min-free <int> (optional)
  • --validate (optional)
  • --file-key <secret> (optional)
vpssnapsUpload a backup straight to your storage: runs one archive subcommand (files-stream or db-dump, named after --) through the helper, checks the archive, encrypts it when the job's backups are encrypted, and uploads it to the signed links VPS Snaps sends for this one upload. Runs as the vpssnaps user; only sizes, checksums and yes-or-no answers go back to VPS Snaps.Writes: a temporary copy of the finished archive under /var/lib/vpssnaps/staging for Box and OneDrive, which take one finished file; removed when the upload ends
object-md5vpssnapsRead back a stored backup from the signed download link sent on stdin, and report its MD5, for a deep verification. Runs as the vpssnaps user; changes nothing.Writes: nothing
self-update
  • --version <version>
root, via the helperInstall a newer helper release: downloads it from vpssnaps.com, installs it only if its signature verifies against the key pinned at install and every file matches, refuses older or equal versions, and puts the old one back if the new one fails its self-test.Writes: the helper's own files in /usr/local/lib/vpssnaps
docker-stream
  • --run-id <id>
  • --volume <docker> … (optional)
  • --compose <path> … (optional)
  • --container <docker> … (optional)
root, via the helperArchive Docker volumes for a backup: each named volume read from its mountpoint (live SQLite files copied safely first), compose files from paths in /etc/vpssnaps/backup-paths.conf, and the named containers' settings (docker inspect), as one gzipped tar on stdout. Every volume must archive, or nothing is reported as backed up.Writes: a temporary staging folder under /var/tmp/vpssnaps-docker, root-only, removed when the archive is done
coolify-dump
  • --container <docker>
  • --db <name>
  • --user <name>
  • --password <secret> (optional)
root, via the helperDump a Coolify-managed PostgreSQL database for a backup: pg_dump inside its container (which must carry Coolify's coolify.managed label), gzipped on stdout. The password travels on the helper's stdin and reaches pg_dump through docker exec's environment, never a command line.Writes: nothing
stage-download
  • --name <staged>
vpssnapsDownload a backup for a restore into /var/lib/vpssnaps/staging, from the link (and, for Google Drive, the short-lived token) sent on stdin. Runs as the vpssnaps user.Writes: the downloaded backup, in /var/lib/vpssnaps/staging
stage-receive
  • --name <staged>
vpssnapsReceive a backup for a restore on stdin into /var/lib/vpssnaps/staging, when the server can't download it itself. Runs as the vpssnaps user.Writes: the received backup, in /var/lib/vpssnaps/staging
stage-remove
  • --name <staged>
  • --plain-only (optional)
vpssnapsRemove a staged backup and its decrypted copy from /var/lib/vpssnaps/staging when a restore is done. Runs as the vpssnaps user.Writes: removes files in /var/lib/vpssnaps/staging only
staged-facts
  • --name <staged>
root, via the helperCheck a staged backup before a restore uses it: makes it root's so it can't change afterwards, then reports its size and MD5 for VPS Snaps to compare with the backup's record.Writes: the staged file's owner and mode
staged-decrypt
  • --name <staged>
  • --file-key <secret> (optional)
root, via the helperDecrypt a checked, encrypted staged backup beside it (root's, readable by root only), with that one file's key sent on stdin. The key never appears on a command line.Writes: the decrypted copy, in /var/lib/vpssnaps/staging, removed with the staged file
restore-probe
  • --extract-root <path> (optional)
root, via the helperBefore a restore: which tools are installed, the free space for staging, and whether the folder to restore into is allowed by /etc/vpssnaps/backup-paths.conf. Changes nothing.Writes: nothing
restore-files
  • --staged <staged>
  • --into <path> (optional)
  • --op conflicts|sidecars|extract|compare
  • --create-only (optional)
  • --cross-server (optional)
root, via the helperOne step of a file restore from a checked staged backup: list what would be overwritten, remove stale SQLite -wal/-shm files, extract, or compare what was written with the backup. Every member must land under /etc/vpssnaps/backup-paths.conf, with no '..', devices, links out or writes beneath a symlink, or nothing is written; VPS Snaps' own installation is never written.Writes: the restored files, under the allowed paths only
restore-db
  • --op connect|count|drops|dry-run|apply
  • --engine postgres|mysql|mariadb|mongodb
  • --db <name>
  • --staged <staged> (optional)
  • --host <host> (optional)
  • --port <int> (optional)
  • --user <name> (optional)
  • --auth-db <name> (optional)
  • --password <secret> (optional)
root, via the helperOne step of a database restore: check the connection, count the target's tables, look for DROP statements at the start of the backup, rehearse (MongoDB --dryRun), or apply it with psql, mysql or mongorestore. The password travels on stdin and reaches the tool through a private file or its environment.Writes: the target database, on apply
restore-docker
  • --op busy|state|apply
  • --volume <docker> …
  • --staged <staged> (optional)
root, via the helperOne step of a Docker restore: which containers use each volume, whether each exists and is empty, or apply (each named volume emptied and refilled from its archive, from the host). A volume's archive may only hold paths inside it.Writes: the named Docker volumes, on apply, and a temporary root-only folder under /var/tmp/vpssnaps-restore
object-stream
  • --url <secret>
  • --header <secret> (optional)
vpssnapsRead a stored backup from its storage link, for a copy to a second destination: as the source of backup-direct (storage to storage, through the server), or on stdout. Runs as the vpssnaps user; changes nothing.Writes: nothing
verify-object
  • --validate (optional)
  • --file-key <secret> (optional)
vpssnapsVerify now: download a stored backup from the storage link sent on stdin, report its size and MD5, and check its archive (decrypted first when encrypted, with that file's key). Runs as the vpssnaps user; nothing is kept.Writes: nothing
app-scanroot, via the helperFind web applications to back up: WordPress, Laravel, Craft, Ghost and Nextcloud configuration files in the usual web roots, inside /etc/vpssnaps/backup-paths.conf only, returned as text (64 KB each at most) so VPS Snaps can suggest their backup jobs. Changes nothing.Writes: nothing
software-profileroot, via the helperRecord what a rebuild elsewhere would need: OS release, the packages you installed, versions of the web stack, running services, your own systemd units, users, listening ports, which configuration folders exist, the firewall state, package sources and the domains configured in nginx or Apache. Changes nothing.Writes: nothing
config-archive-streamroot, via the helperArchive the configuration a rebuild needs, as a gzipped tar on stdout, uploaded encrypted to your own storage: /etc/nginx, /etc/apache2, /etc/caddy, /etc/php, /etc/letsencrypt (TLS keys), /etc/supervisor, /etc/redis, /etc/cron.d, the crontabs, and your package sources and their signing keys. A fixed list; it takes no paths.Writes: nothing
db-admin
  • --op ping|create
  • --engine postgres|mysql|mariadb
  • --db <name> (optional)
  • --user <name> (optional)
  • --password <secret> (optional)
root, via the helperFor moving an application here: as the database's own administrator (the postgres user, or root over MySQL's socket), check the connection, or create the application's database and its user if they don't exist. The statements are built by the helper from the name, user and password; it never runs SQL it was sent.Writes: a new database and database user, on create, only if missing
db-query
  • --op ping|tables
  • --engine postgres|mysql|mariadb
  • --db <name>
  • --host <host> (optional)
  • --port <int> (optional)
  • --user <name> (optional)
  • --password <secret> (optional)
root, via the helperFor moving an application here: connect as the application's own database user, exactly as its backup does, and check it works or count its tables. The password travels on stdin.Writes: nothing
db-client
  • --engine postgres|mysql|mariadb
root, via the helperFor moving an application here: whether psql or mysql is installed, and its version. Changes nothing.Writes: nothing
migration-facts
  • --op count|any|free
  • --path <path>
root, via the helperFor moving an application here: how many files are under a path, whether it holds any, or how much disk is free where it would go. Counting and listing only inside /etc/vpssnaps/backup-paths.conf. Changes nothing.Writes: nothing
patch-simulate
  • --scope security|all
  • --refresh (optional)
root, via the helperWork out an update without installing anything: which packages would change (from and to), whether any would be removed, which allowed services they belong to and whether a reboot is likely. The exact package=version list is kept on the server, root-only, for 15 minutes under a preview id; nothing VPS Snaps sends can add to it.Writes: the preview file in /var/lib/vpssnaps/runs (root only), and apt's package lists with --refresh
patch-apply
  • --preview <preview>
root, via the helperInstall exactly the packages of one preview, pinned to the previewed versions, in a systemd unit of its own so a dropped connection can't interrupt it. Refused if the preview is over 15 minutes old, if installed packages changed since, or if apt would remove anything. Config files you changed are kept (--force-confold); services aren't restarted by apt.Writes: installed packages (only those in the preview)
job-status
  • --id <job>
root, via the helperReport a patch job: running, succeeded, failed or interrupted, with the end of apt's log, whether a reboot is now required and which allowed services still run old libraries.Writes: nothing
failed-unitsroot, via the helperList systemd units in the failed state, to compare before and after an update. Changes nothing.Writes: nothing
service-action
  • --op test|status|reload|restart
  • --service <service>
root, via the helperCheck, report, reload or restart one service listed in /etc/vpssnaps/services.conf. Reload and restart run the service's own config check first (nginx -t, apachectl configtest, php-fpm -t, caddy validate) and don't go ahead if it fails.Writes: a running service, on reload or restart
reboot
  • --delay-seconds <int> (optional)
root, via the helperRestart the server after a delay (5 seconds to an hour), through a systemd timer, and report the current boot id so VPS Snaps can tell when it's back.Writes: restarts the server
syncroot, via the helperWrite everything still held in memory to disk (sync), right before VPS Snaps snapshots the server, so the snapshot holds recent changes. Changes nothing.Writes: nothing

Uploads run as vpssnaps, not root. The server sends your backup straight to your storage, using one-time links we sign for that upload. Only sizes, checksums and yes-or-no answers come back to us.

Exactly What the Installer Changes

The installer adds one sudo rule. This is the whole of it:

vpssnaps ALL=(root) NOPASSWD: /usr/local/lib/vpssnaps/vpssnaps-helper

It adds one SSH setting block, in /etc/ssh/sshd_config.d/50-vpssnaps.conf. It only applies to the vpssnaps user. Before reloading SSH, the installer compares SSH's settings for root and for other users, and undoes everything if anything else would change.

Match User vpssnaps
    AuthorizedKeysFile /etc/vpssnaps/authorized_keys
    PasswordAuthentication no
    KbdInteractiveAuthentication no
    ForceCommand /usr/local/lib/vpssnaps/vpssnaps-dispatch
    PermitTTY no
    AllowTcpForwarding no
    AllowStreamLocalForwarding no
    AllowAgentForwarding no
    X11Forwarding no
    PermitTunnel no
    PermitUserRC no

The key lives in /etc/vpssnaps/authorized_keys, owned by root, so the vpssnaps user can't change it. It only works from our two outgoing addresses:

restrict,from="165.227.255.101,143.198.180.58" ssh-ed25519 AAAA… vpssnaps-<server>

The rest:

  • /usr/local/lib/vpssnaps/: the dispatcher, the helper and the command list, owned by root.
  • /etc/vpssnaps/backup-paths.conf: the only folders the helper will back up. The default is /var/www, /home, /srv and /opt.
  • /etc/vpssnaps/services.conf: the services it may test, reload or restart.
  • /var/lib/vpssnaps/staging: a private working folder for the vpssnaps user.
  • /var/log/vpssnaps-helper.log: one line for every request the helper runs.

What It Can't Protect You From

Reading a folder for a backup means reading everything in it. If you add folders like /etc or /root to backup-paths.conf, a backup holds what's there, such as password hashes and private keys. Restoring into those folders can change how the whole server behaves, which is as good as root.

The default list leaves them out on purpose. Add them only if you need them, and keep your storage locked down.

Checking What It Did

Each request the helper runs adds one line to /var/log/vpssnaps-helper.log: the time, the command, its arguments and the result. Passwords and keys are shown as [redacted]. The log is rotated weekly and kept for 12 weeks.

sudo tail -n 20 /var/log/vpssnaps-helper.log

To check the installation itself, the same test VPS Snaps runs when it connects:

sudo /usr/local/lib/vpssnaps/vpssnaps-helper selftest

How Upgrades Are Signed

Each helper release is a bundle with a list of its files and their checksums. That list is signed with an Ed25519 key that lives only in our release pipeline, never on our web servers. Its public half is built into the installer and kept on your server.

An update installs only if the signature checks out, every file matches the list, and it's newer than what you have. Updates never install themselves unless you turn on automatic updates for that server.

Removing It

The uninstaller removes the user, the sudo rule, the SSH settings, the helper and its configuration, and reloads SSH. It keeps the log, so you still have the record.

curl -fsSLo uninstall-agent.sh https://vpssnaps.com/uninstall-agent.sh && sudo bash uninstall-agent.sh

Backups of that server stop until you connect it again. Root access is still supported if you'd rather use it. How the rest of VPS Snaps is secured.

Question about Secure access, or found a way around it?

Email [email protected] — a person reads it, not a ticket queue.