SOLVED: File backup of subvolume of btrfs filesystem does not work (no error message but empty backup)

Thanks for the detailed error description, log file etc.

What I think is going on is that the client corrects /srv/dev-disk-by-label-SSD1TB/DATEN to /srv/dev-disk-by-label-SSD1TB (via https://github.com/uroni/urbackup_backend/blob/dev/urbackupclient/client.cpp#L352 ), because it thinks it needs to create a snapshot of the file system. So this needs some special handling for btrfs, I guess (test if each folder up to the mount point is a subvolume or something).

To work around, either:

  • Mount the btrfs subvolume directly, such that it appears in /proc/mounts
  • Or work-around manually in the snapshot script
  • Or add volumes_mounted_locally=0 to the snapshot.cfg (then it won’t correct the backup path to the mount path)