digint / btrbk

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

Add raw target support for archive #124

Open Massimo-B opened 7 years ago

Massimo-B commented 7 years ago

As main target is most time some btrfs I like to copy a backup to raw type manually sometimes using the archive method. There it is currently not possible to have raw type locations.

digint commented 7 years ago

@Massimo-B what about a separate config like this:

assuming that the main config has target /mnt/btr_backup/ for a subvolume data:

volume /mnt/btr_backup
  subvolume data
    # dont touch snapshots
    snapshot no
    snapshot_preserve_min all

    target_preserve [...]

    # your archive target:
    target raw /mnt/archive_xyz/

then simply run btrbk -c /etc/btrbk/archive.conf [-n] run and you should get what you want.