2021-04-25 19:21:52 +02:00
|
|
|
# `atuin sync`
|
|
|
|
|
2022-04-22 22:17:05 +02:00
|
|
|
Atuin can back up your history to a server, and use this to ensure multiple
|
2021-04-25 19:21:52 +02:00
|
|
|
machines have the same shell history. This is all encrypted end-to-end, so the
|
|
|
|
server operator can _never_ see your data!
|
|
|
|
|
|
|
|
Anyone can host a server (try `atuin server start`, more docs to follow), but I
|
|
|
|
host one at https://api.atuin.sh. This is the default server address, which can
|
2021-05-11 16:44:13 +02:00
|
|
|
be changed in the [config](config.md). Again, I _cannot_ see your data, and
|
2021-04-25 19:21:52 +02:00
|
|
|
do not want to.
|
|
|
|
|
|
|
|
## Sync frequency
|
|
|
|
|
|
|
|
Syncing will happen automatically, unless configured otherwise. The sync
|
2021-05-11 16:44:13 +02:00
|
|
|
frequency is configurable in [config](config.md)
|
2021-04-25 19:21:52 +02:00
|
|
|
|
|
|
|
## Sync
|
|
|
|
|
|
|
|
You can manually trigger a sync with `atuin sync`
|
|
|
|
|
|
|
|
## Register
|
|
|
|
|
|
|
|
Register for a sync account with
|
|
|
|
|
|
|
|
```
|
|
|
|
atuin register -u <USERNAME> -e <EMAIL> -p <PASSWORD>
|
|
|
|
```
|
|
|
|
|
|
|
|
Usernames must be unique, and emails shall only be used for important
|
|
|
|
notifications (security breaches, changes to service, etc).
|
|
|
|
|
|
|
|
Upon success, you are also logged in :) Syncing should happen automatically from
|
|
|
|
here!
|
|
|
|
|
|
|
|
## Key
|
|
|
|
|
|
|
|
As all your data is encrypted, Atuin generates a key for you. It's stored in the
|
|
|
|
Atuin data directory (`~/.local/share/atuin` on Linux).
|
|
|
|
|
|
|
|
You can also get this with
|
|
|
|
|
|
|
|
```
|
|
|
|
atuin key
|
|
|
|
```
|
|
|
|
|
|
|
|
Never share this with anyone!
|
|
|
|
|
|
|
|
## Login
|
|
|
|
|
2022-04-22 22:17:05 +02:00
|
|
|
If you want to log in to a new machine, you will require your encryption key
|
2021-04-25 19:21:52 +02:00
|
|
|
(`atuin key`).
|
|
|
|
|
|
|
|
```
|
|
|
|
atuin login -u <USERNAME> -p <PASSWORD> -k <KEY>
|
|
|
|
```
|
2021-05-09 21:11:17 +02:00
|
|
|
|
|
|
|
## Logout
|
|
|
|
|
|
|
|
```
|
|
|
|
atuin logout
|
|
|
|
```
|