Support For IT

The command line: vkctl

vkctl does from a command prompt or a script what the app does. It's installed with VersionKeep, in C:\Program Files\VersionKeep\Service, and on the PATH. Changing settings needs the same rights as in the app: an administrator, or Local System in a deployment script. A setting Group Policy sets is refused, with the reason.

Status

Command What it does
vkctl status The last and next backup, anything waiting, the last error, and each destination's health; --json for a script
vkctl events [--admin] [--hours <n>] VersionKeep's events from the last 24 hours (or n), newest first, as JSON, from each log your account may read; --admin for the Admin log only
vkctl times When backups were made, newest first
vkctl backup <folder> Back up now: everything that's set up, when the folder is one of them. Lists any files left out or copied while open
vkctl pause <hours> Pause automatic backups for that many hours; tomorrow until midnight; off to resume
vkctl mcp A read-only Model Context Protocol server, so an AI assistant can keep watch (see Monitor backups)

What's backed up

Command What it does
vkctl sources What backups cover, for every profile, and what's left out
vkctl sources known <folder> on Turn a known folder on or off: Desktop, Documents, Pictures, Videos, Music, Downloads
vkctl sources add <folder> Back up another folder or a whole drive; remove stops
vkctl sources exclude <rule> Leave out a path, a name or a *.pattern; include stops leaving it out

Where backups go

Command What it does
vkctl destinations Each destination with its ID and health, and the drives that could hold backups
vkctl destinations add <\\server\share\folder> <name> Back up to a network folder, reached as this PC
vkctl destinations add <\\server\share\folder> <name> --user <user> A network folder that needs a user name; the password is read from the keyboard or piped in
vkctl destinations add-drive <E:> <name> A drive, found again whatever its letter
vkctl destinations add-s3 <s3:host/bucket/folder> <name> --key <access key ID> [--region <region>] S3-compatible cloud storage; the secret is read from the keyboard or piped in
vkctl destinations login <id> <user> Change a share's user name and password; off to reach it as this PC
vkctl destinations key <id> <access key ID> Change cloud storage's access key
vkctl destinations buffer <id> on <C:> [<GB>] While the destination is out of reach, keep backups on this drive; off to stop
vkctl destinations away-days <id> <days> How many days away is normal for this destination before VersionKeep warns
vkctl destinations space <id> <GB> The most this destination may hold; auto or off
vkctl destinations folders <id> <folder>... Back up only these of the folders VersionKeep backs up to that destination; all for everything
vkctl destinations schedule <id> changes When that destination backs up: changes (as files change), every <minutes>, daily <hour>, manual (only Back up now), or default for its kind's
vkctl destinations retention <id> balanced Which versions that destination keeps: balanced, keep-everything, save-space, custom <last> <hourly> <daily> <weekly> <monthly> <yearly>, or default for the PC's
vkctl destinations old-backups <id> ask When it's back after a week or more and clean-up would remove old backups: ask, keep or clean-up
vkctl destinations move <id> <E:> Move a drive's or folder's backups, every one, to another drive or folder, each file checked; the old copy stays
vkctl destinations remove <id> Stop backing up there. Its backups stay.
vkctl network <server> [<share/folder>] [--user <user>] The shared folders on a NAS or PC, and the folders inside one, as backups will reach them

Schedule and versions

Command What it does
vkctl schedule When automatic backups run, for the PC and each kind of destination, and the next one
vkctl schedule every <minutes> How often scheduled backups run, also the safety net under backing up as files change; off turns automatic backups off
vkctl schedule kind network changes When each kind of destination backs up unless it has its own schedule: drives, network or cloud, then changes, every <minutes>, daily <hour>, manual or default (drives and network folders as files change, cloud every hour)
vkctl schedule quiet <from> <to> Hours not to back up; quiet off to back up at any time
vkctl schedule battery-saver on Wait while battery saver is on; off not to
vkctl schedule metered on Make network and cloud backups wait on a metered connection; off not to
vkctl schedule data-cap <GB> [<day>] Limit how much internet VersionKeep uses a month, the month starting on that day (1 to 28, the 1st if left out); data-cap off for no limit
vkctl schedule at-once <1-4> How many backups may run at the same time; at-once default for 2
vkctl schedule when-back on Back up as soon as a drive or share that was away is back; off to wait for the next scheduled backup
vkctl retention balanced Which versions to keep: balanced, keep-everything or save-space
vkctl retention custom <last> <hourly> <daily> <weekly> <monthly> <yearly> Your own counts
vkctl retention deleted-days <days> How long a deleted file's last version is kept when a destination fills (1 to 365)
vkctl retention preview What clean-up would remove now, without removing anything
vkctl retention clean-up Apply the versions rule on every destination now

Space and checks

Command What it does
vkctl storage [<id>] What backups take on each destination, how far back they go, how fast they grow and how they last checked; <id> --backups lists each backup
vkctl check <id> Check a destination's backups; --verify also reads back part of the data, --verify-all all of it
vkctl checks [<id>] Each destination's last test restore, and how the last check before each check job went (that the key opens the backups, and they're the ones checked before)
vkctl damage [<id>] Damaged parts found in the backups: what was repaired and from where, and the files and backups affected by damage no copy could repair
vkctl damage remove <id> Remove the damaged parts: take out only the damage, and write the backups that used it again without those file versions
vkctl keep <id> <backup id> on Keep that backup forever; off lets clean-up thin it again
vkctl space Destinations that are full, or where making room would remove a large part of the history; allow <id> allows that removal
vkctl old-backups Destinations back after a week or more, waiting for an answer before clean-up; <id> keep or <id> clean-up, with --remember
vkctl emptied Backed-up folders that lost most of their files at one backup, which clean-up waits on; expected <folder> lets it carry on
vkctl found-backups VersionKeep backups on the drives plugged in that aren't one of this PC's destinations

Restore

Command What it does
vkctl versions <file> A file's versions, numbered from 1, the newest (the newest 1,000; --all for every one)
vkctl restore <path> [<n>] Put a file back in its place as version n, or a folder as it was at the last backup; the current files are backed up first
vkctl restore <path> --at <time> As it was at that backup time
vkctl restore <path> --beside Restore a copy beside it instead; --to <folder> restores somewhere else
vkctl restore <path> --remove-added Put a folder back and also remove the files added since that a backup holds
vkctl restore <path> --no-backup-first Restore without backing up the current files first; each file replaced is kept beside it
vkctl restore <path> --dry-run Say what it would do, and change nothing
vkctl restores Recent restores, with the ID to undo each
vkctl undo <id> Undo a restore
vkctl browse <time> [<folder>] What a backup from that time holds
vkctl restore-app <app> [--at <time>] Put one of your apps back as it was, its current data backed up first
vkctl other-backups open <folder> <recovery key> Open another PC's backups here with its recovery key (administrators); other-backups lists those open, close <id> closes one

Recovery key, settings, license and updates

Command What it does
vkctl recovery-key Whether this PC has a recovery key and which destinations it opens
vkctl recovery-key new Make one and print it once (administrators)
vkctl recovery-key confirm <group> <group> Type back the two groups it asks for
vkctl settings This PC's settings, whether you may change them, and what Group Policy sets
vkctl settings change-rule administrators Who may change settings: administrators or any-user
vkctl policy The VersionKeep policies on this PC, where each came from and what it locks
vkctl policy templates <folder> Write VersionKeep.admx and en-US\VersionKeep.adml there; reference <file> writes the Group Policy reference
vkctl policy app-data The names the AppDataRequired policy takes, for the apps found on this PC
vkctl name [<name>] The PC's name in VersionKeep, its Windows name and the folder its backups go under; --clear goes back to the Windows name
vkctl license This PC's license; check checks it with versionkeep.com now; rename <name> renames the PC on its license; deactivate frees its place on the license (new backups stop)
vkctl license request <file> Make an offline activation request; import <file> takes the license file back
vkctl update The version installed, the update on offer and why it waits, and the last update
vkctl update check Check for an update now; install installs the one that's ready; resume resumes updates after a failed one paused them
vkctl update mode automatic How updates arrive: automatic, ask or off; early on takes a new release the day it's out
vkctl remove-data [--keys] Before uninstalling: delete VersionKeep's data on this PC; --keys deletes the keys too, so only the recovery key opens the backups

More in For IT