digint / btrbk

Tool for creating snapshots and remote backups of btrfs subvolumes
https://digint.ch/btrbk/
GNU General Public License v3.0
1.72k stars 124 forks source link

Same snapshot name confuses btrbk #145

Open ceremcem opened 7 years ago

ceremcem commented 7 years ago

Possible bug, here is re-producing steps:

  1. Run any configuration with a target setting.
  2. cd your-target-disk
  3. btrfs sub snap -r snapshots/your-specific-snapshot test/your-specific-snapshot
  4. Run your configuration again:

    WARNING: Receive target of "/mnt/erik/snapshots/rootfs/rootfs.20170429T2001" exists at unexpected location: "<BTRFS_ROOT>/snapshots/test-cca/rootfs.20170429T2001" (in filesystem at "/mnt/heybe/snapshots/rootfs")
digint commented 7 years ago

That's actually a feature. btrbk tries to tell you "hey, the subvolume you are going to transmit is already on the target disk, but at some non-btrbk-configured (unexpected) location".

While I still think this is a useful feature, it regularly confuses people (guess I'll really have to re-think of disabling this feature, or maybe use log-level info for this)

ceremcem commented 7 years ago

Maybe this feature is useful, but the problem is that there is also the_snapshot in the correct location (there are two copies of it). This is confusing.