aktos-io / dcs-tools

Tools for making remote Linux node management easy
42 stars 6 forks source link

method-btrfs should use cp with reflinks, not btrfs snapshots #28

Open ceremcem opened 6 years ago

ceremcem commented 6 years ago

Using BTRFS snapshots in method-btrfs mode creates btrfs snapshots in the backup directory. This prevents whole operating system backups containing those btrfs snapshots, which would cause requiring additional attention to those who wants to use dcs-tools to keep multiple backups of target systems and use btrfs snapshot to keep whole operating system backups.

Proposal

Use cp --reflink=always in place of btrfs sub snap. This will be still

  1. Fast enough
  2. Space efficient