Skip to content

Sync

Sync keeps what you save alike on your computers, through a folder, a WebDAV server or an S3 bucket: hosts, groups, credentials, port forwards, snippets, SFTP’s remote bookmarks and the AI assistant’s model services, with the passwords of hosts and proxies, the passwords of credentials, the passphrases of keys, the secrets of one-time codes, the private keys in keys/ and the model services’ API keys. The folder can be one iCloud Drive, Dropbox, OneDrive or another cloud drive syncs, or one on a network share; the WebDAV server can be Jianguoyun, Nextcloud, a Synology NAS or any other cloud drive or server that speaks WebDAV; the S3 bucket can be AWS S3’s, or one of object storage that speaks its API, such as Cloudflare R2, MinIO, Backblaze B2, Alibaba Cloud OSS or Tencent Cloud COS.

  • Turning it on: in “Settings › Cloud sync”, click “Choose folder…” and pick a folder, or “Connect WebDAV…” and enter the server’s address, username and password. The address is the server folder sync goes in (such as https://dav.jianguoyun.com/dav/ShellRS on Jianguoyun), made if missing. For Jianguoyun, use an app password from “Account › Security” on its website; for Nextcloud, one from “Settings › Security”. “Test connection” writes a small file there, reads it back and deletes it, to see that sync can read and write. Or click “Connect S3…” and enter the endpoint, region, bucket, folder in the bucket and access key: an empty region is us-east-1, and Cloudflare R2’s is auto; tick “Path-style addresses” for MinIO and other self-hosted services; the bucket must exist already, and the access key needs only to read and write it. The WebDAV password and the S3 secret access key are kept in the system keychain only; should the server or bucket later refuse it (an app password or access key revoked, say), sync stops and asks you to sign in again, and “WebDAV login” or “S3 access key” on the settings page changes it any time. Without sync there yet, you set it up: choose a sync password (at least 12 characters, or click “Generate password”), which your other computers ask for when they join. A forgotten sync password can’t be recovered; you can only turn sync off and set it up again in another folder. With sync there already, you join it: enter its sync password, and what’s on this computer is merged with the other devices’, nobody’s deleted.
  • Setup code: once sync is on, your other devices don’t need the address and keys typed again. On a computer that syncs, click “Show setup code…” in “Settings › Cloud sync”: the dialog shows a QR code and “Copy setup code”. The setup code holds the sync location and its login (the WebDAV password or the S3 secret access key), encrypted with the sync password. On another computer, click “Enter setup code…” in “Settings › Cloud sync”, paste it and enter the sync password, and it joins the sync; ShellRS on a phone does the same by scanning the QR code. Only sync through WebDAV or S3 has a setup code (a folder’s path differs on each computer); making one reads the sync location once, so it needs the network. After the sync password is changed, earlier setup codes don’t open with the new one: show a new code. A setup code is no use to anyone without the sync password, but don’t post it anywhere public; should a code and the sync password of its time both leak, change the sync password and also replace the WebDAV password or S3 access key at the provider.
  • HTTPS certificates: when a WebDAV or S3 address uses https, this computer’s system has to trust the server’s certificate. A NAS such as Synology’s comes with a self-signed certificate, which the system doesn’t trust, and connecting says “This computer doesn’t trust the server’s certificate”. Get the NAS a trusted certificate, such as a Let’s Encrypt one, or have the system trust its certificate: on macOS, set it to “Always Trust” in Keychain Access; on Windows, import it into “Trusted Root Certification Authorities”; on Linux, add it to the system’s CA folder. The name on the certificate has to match the address: connecting by IP needs a certificate for that IP. macOS also wants it valid for no more than 825 days and marked for server authentication, and says “not standards compliant” otherwise. On a network you trust you can also use http: what sync writes is already encrypted with the sync password, but the WebDAV password goes unencrypted.
  • When it syncs: when it’s turned on, when ShellRS starts, when its window comes forward (at most once a minute), 5 seconds after you stop editing, when you click “Sync now”, and before quitting (waiting 3 seconds at most). It never polls on a timer. A record changed on two computers keeps the later change. “Settings › Cloud sync” shows where it stands; errors show there only, with no notification.
  • What doesn’t sync: serial hosts (the port is this computer’s), quick and external connections, local-side bookmarks, the local terminals in Projects, the AI assistant’s conversations, and the settings (whether the AI assistant is on, its default model, approval and where commands run included). A host’s system, the tool its right sidebar shows, its Follow and Sync browsing switches, whether a group is expanded and whether a forward starts with ShellRS stay on this computer too. Keys that credentials made before this version only name by their path don’t sync; choose the key file in the credential again and it does.
  • Encryption: everything is encrypted on this computer before it’s written to the folder or the server, which holds one file per device, ciphertext only. The sync password only unlocks the keys and is never kept; the keys are kept in the system keychain, so a computer without one can’t turn sync on. When the keychain is locked and the passwords can’t be read, a sync leaves them all as they are rather than taking them as deleted.
  • Devices: “Other devices” lists the devices in the same folder, their system and version, and when they last synced. “Remove…” deletes that device’s file in the folder; the device asks whether to rejoin the next time it syncs. If a device is lost, remove it, then change the sync password: the data key is changed with it, so even knowing the old password, the device can’t read anything newer.
  • Changing the sync password: the data key is changed with it. Your other devices ask for the new password when they next sync, and go on syncing once it’s entered, with nothing to merge again.
  • What waits for you: when one sync would delete 10 records or more and over half of them, it stops first and says so in a notification and on the settings page; the records go only once you agree, and “Cancel” keeps it waiting. The same goes for sync reset on another device, or this computer removed: it waits for the password or for you to rejoin.
  • Turning it off: what’s on this computer stays as it is; the sync keys, the WebDAV password or S3 key and the state go, and you can choose to delete this computer’s file where sync goes too.

Not done yet: a preview of duplicate hosts when first joining.