Where has my history gone?

voltagex@BeeMovie:~$ atuin history list
2024-04-16 15:14:04     atuin list      3ms
2024-04-16 15:14:07     atuin history list      6ms
2024-04-16 15:14:24     atuin history list      0s

And I can’t see any history from other machines.

I’m afraid there’s very little I can do to help you with the information you’ve provided so far. Could you share some more information please?

It would be good to know

  1. What’s the output of atuin doctor?
  2. How many machines are you syncing?
  3. Are you signed in to the same account on all of them?
  4. Do you get any errors running atuin sync?
  5. Have you imported your history?
voltagex@debian:~$ atuin doctor
error: unrecognized subcommand 'doctor'

(this machine has my history though)
Must be an old version?

on the machine with the newer version:

atuin:
  version: 18.2.0
  sync:
    cloud: true
    records: true
    auto_sync: true
    last_sync: 2024-04-16 9:51:55.09944447 +00:00:00
shell:
  name: bash
  default: unknown
  plugins:
  - atuin
  - bash-preexec
system:
  os: Debian GNU/Linux
  arch: x86_64
  version: '12'
  disks:
  - name: /dev/sda2
    filesystem: ext4
  - name: /dev/sda1
    filesystem: vfat

voltagex@BeeMovie:~$
  • How many machines are you syncing?

Two, although I thought I had set up one other one as well

  • Are you signed in to the same account on all of them?

I am 99% sure - I used the same username, password and encryption key

Working machine:

Atuin v17.2.1 - Build rev 9f79a34a9dea207df7184972fa29f4fe5ec41b27

[Local]
Sync frequency: 10m
Last sync: 2024-04-16 9:51:07.837717562 +00:00:00
History count: 7149
Deleted history count: 0

[Remote]
Address: https://api.atuin.sh
Username: voltagex
History count: 7156

Newly set up machine

voltagex@BeeMovie:~$ atuin status
Atuin v18.2.0 - Build rev a0231a70950fbec9dcc3403e37066d891d1fc833

[Local]
Sync frequency: 10m
Last sync: 2024-04-16 9:51:55.09944447 +00:00:00
[Remote]
Address: https://api.atuin.sh
Username: voltagex
  • Do you get any errors running atuin sync?

Not that I can see

  • Have you imported your history?

I have now, thanks for the reminder

Ah, I see! Thanks.

First, I’d get your other machine updated. If you used the install script, you can run it again.

Then, on the working machine, add this to the bottom of your ~./config/atuin/config.toml

[sync]
records = true

Run atuin sync

Should be good after that

1 Like

Just confirming that this worked well.

Sync complete! 9371 items in history database, force: false

Thanks!

1 Like