Create a file config.json
{
"username": "myuser",
"password": "mypassword",
"reinstall": true or false,
"device_name": "my device"
}
docker run -it -v $(pwd)/config.json:/config.json -v $(pwd)/configfolder:/spideroak -e HEADLESS=0 jandebleser/spideroak --setup=/config.json
docker run -it -v $(pwd)/configfolder:/spideroak -v $(pwd)/backup:/backup jandebleser/spideroak --include-dir=/backup
docker run -it -v $(pwd)/configfolder:/spideroak -v $(pwd)/backup:/backup jandebleser/spideroak
Mount a folder under /spideroak, and the one you want to backup under /backup.
Run with environment variable SLEEP=infinity
Then run bash commands:
SpiderOakONE --setup=/config.json
SpiderOakONE --include-dir=/backup
Then set the variable SLEEP to 0