These instructions presume that you have already created an account. An account cannot be created from the command line, but once created, you can set up and manage its devices from the command line.
To create or reinstall a device, run SpiderOak One with the --setup
option. This option can be run in one of two ways: interactively or with a JSON setup file.
The former is the easiest way. It is available on Windows and Linux but not Mac. To do this, run SpiderOakONE --setup=-
(notice the trailing dash) which tells it to create a new device by prompting you interactively for setup parameters.
The exact command you will give depends upon your operating system:
- Windows:
""C:\Program Files\SpiderOakONE\SpiderOakONE.exe" --setup=-"
Notice the nested quote marks. - Linux:
SpiderOakONE --setup=-
Run this as a regular user, not as root.
When run this way, the process looks like this:
johndoe@jupiter:~$ SpiderOakONE --setup=- Login: SOExample Password: Logging in... Getting list of devices... id name 1 jupiter To reinstall a device, enter the id (leave blank to set up a new device): 1 Reinstalling device... Finalizing device setup... Generating encryption keys (this could take a while)... Synchronizing with server (this could take a while)... batchmode run complete: shutting down
The second way that --setup can be used is with an external JSON configuration file. This method is available on all supported operating systems (Windows, Mac, and Linux) and is particularly suitable for automation and replication. The format of the file is as follows:
{ "username": "username", "password": "password", "reinstall": true | false, "device_name": "device name" }
username
can be either a username or an email address, but the parameter name is always username
.
reinstall
can be omitted. When it is, it defaults to false (that is, sets up a new device). If reinstall is true, then device_name
is the name of an existing device to reinstall; otherwise device_name
is the name of the new device to set up.
After you have set up a device, your next step is usually to add one or more directories to its backup selection.
If you have any feedback on this article please let our support team know. Thanks!