Skip to content

snbk can't send snapshots. TheBigThing.cc(transfer):85 ... File exists 'mkdir' failed #1088

@grigio

Description

@grigio

I think it;s something related #1061 , I can send the first full snapshot correctly with snbk but from the second snapshot and beyond i can't send new ones.

~ ❯ sudo snbk -b home transfer-and-delete
Running transfer and delete for backup config 'home'.
Transferring snapshot 14.
Transferring snapshot 15.
Transferring snapshot 16.

~ ❯ sudo snbk -b home transfer-and-delete
Running transfer and delete for backup config 'home'.
Transferring snapshot 14.
Thu 22 Jan 2026 10:05:25 AM CET <3> TheBigThing.cc(transfer):81 command '/usr/bin/ssh 192.168.1.79 -p 22 -l root -i /etc/snapper/certs/id_ecdsa '/usr/bin/mkdir' '--' '/@bkp-home/14'' failed: 1
Thu 22 Jan 2026 10:05:25 AM CET <3> TheBigThing.cc(transfer):85 mkdir: cannot create directory '/@bkp-home/14': File exists
'mkdir' failed.
Running transfer and delete for backup config 'home' failed.
Running transfer and delete failed for 1 of 1 backup config.

info

ssh root@192.168.1.79 btrfs version
btrfs-progs v6.17.1
-EXPERIMENTAL -INJECT -STATIC +LZO +ZSTD +UDEV +FSVERITY +ZONED CRYPTO=libgcrypt

~ ❯ cat /etc/snapper/backup-configs/root.json
{
  "config": "root",
  "target-mode": "ssh-push",
  "automatic": true,
  "source-path": "/",
  "target-path": "/backups/omarchy/root",
  "ssh-host": "192.168.1.79",
  "ssh-user": "root",
  "ssh-port": 22,
  "ssh-identity": "/etc/snapper/certs/id_ecdsa"
}

~ ✗ cat /etc/snapper/backup-configs/home.json
{
  "config": "home",
  "target-mode": "ssh-push",
  "automatic": true,
  "source-path": "/home",
  "target-path": "/@bkp-home",
  "ssh-host": "192.168.1.79",
  "ssh-user": "root",
  "ssh-port": 22,
  "ssh-identity": "/etc/snapper/certs/id_ecdsa"
}


BTRFS server

[root@archlinux root]# tree /@bkp-home/ -L 2
/@bkp-home/
├── 14
│   ├── info.xml
│   └── snapshot
├── 15
│   ├── info.xml
│   └── snapshot
└── 16
    ├── info.xml
    └── snapshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions