Command line operation of SpiderOak ONE and Groups is available on all supported desktop operating systems: Windows, Mac, and Linux. Here is a brief overview of the command line's available options, with links to more detailed information.
Basic Options
--version
- Show program's version number and exit.
-h, --help
- Show this help message and exit.
-v, --verbose
- Be verbose: show detailed status information as it happens.
--redirect=FILE
- Redirect console output to file.
--d DEVICE_NUMBER, --device=DEVICE_NUMBER
- Run the command for the specified device. Note that some commands are local only. Default is local device.
--shutdown
- Connect to a running instance and shut it down.
Operational Modes and Commands
--scan, --scan-only
- Scan the filesystem for changes and report a summary.
--build, --scan-and-build-only
- Scan the filesystem, and build all possible file system changes as shelved upload transactions, and exit without uploading them.
- Like batchmode, but only backup/update synced directories.
--backup=TARGET
- Ad hoc operation: back up whatever exists at TARGET in the filesystem and exit (ignores existing backup selection).
- Like headless, but will exit when all available work is done.
- Run in headless mode (without the graphical interface).
--purge=item
- Purge a directory or file (including historical versions).
- Honor the set activity schedule, even in batchmode (normally the schedule is ignored in batchmode).
- Disable activity scheduling.
--enable-os-integration
- Enables the shell integration features (Windows only).
--disable-os-integration
- Disables the shell integration features (Windows only).
Information Commands
--userinfo, --user-info
- Show user and device info.
--shelved-x, --print-shelved-x
- Show information about each shelved upload transaction.
--space
- Show space usage information by device.
- Show the hierarchy of stored backup directories.
- Show all directories and files stored on device.
- Show a log of how the hierarchy of stored backup directories has changed over time.
--journal-changelog=directory_or_journal_nbr
- Show the changelog of a given directory.
Backup Selection Manipulation Commands
--selection, --print-selection
- Show a list of selected and excluded backup items.
- Reset selection (but preserve excluded files).
--exclude-file=EXCLUDE_FILE
- Exclude the given file from the selection.
--include-file=INCLUDE_FILE
- Include the given file in the selection.
--exclude-dir=EXCLUDE_DIR
- Exclude the given directory from the selection.
--include-dir=INCLUDE_DIR
- Include the given directory in the selection.
--force
- Do in/exclusion even if the path doesn't exist.
Maintenance Commands
- Rebuild the SpiderOakONE reference database (can take awhile).
- Clear the queue of all transactions, such as file uploads.
- Repair a local SpiderOakONE installation.
- Purge historical versions:
- "all": purge all historical versions of all files.
- "hM,dN,w": hourly for last M hours, daily for last N days, weekly thereafter (also accepts (m)onthly and (y)early).
- No option: hourly for last 24 hours, daily for last month, then weekly thereafter.
--purge-deleted-items=RETENTION_DAYS
- Purge deleted items older than specified number of days.
- Vacuum SpiderOakONE's local database (rebuilds indexes and reclaims local disk space).
--list-orphan-external-files
- List parent_id's of unreferenced external block files.
--orphans=ACTION
find
orfree
unused database files. Use--orphans=help
for more info.
Account Commands
- Print a secure link for billing access.
--rename-device=NEWNAME
- Rename the specified device with name NEWNAME.
--setup=SETUP_FILE
- Create or reinstall a device by reading parameters from the specified JSON file. Use
--setup=-
to be prompted interactively for parameters. Use--setup=help
for more info.
Share Commands
--list-shares
- List shares.
--delete-share=ROOMKEY
- Delete the ShareRoom with the given RoomKey.
--share-single-file=FILE
- Creates a link to share the specified file.
Restore Options
--restore=item
- Restore a directory or file. Run
--restore help
for more info.
-o DIR, --output=DIR
- Target directory to restore items to (default is normal download directory).
--point-in-time=DATE
- Use this option together with
--restore
to restore data as stored at DATE. Format: YYYY-MM- DD[/HH:MM[:SS]].
--simulate
- Use this option together with
--restore
to simulate the download and list the files to download.
--get-held-metadata
- Retrieve metadata held by server according to policy.
If you have any feedback on this article please let our support team know. Thanks!