Skip to content

Instantly share code, notes, and snippets.

@jzuijlek
Created July 18, 2016 06:36
Show Gist options
  • Save jzuijlek/a8d2624c9227fc50a60007146c45522e to your computer and use it in GitHub Desktop.
Save jzuijlek/a8d2624c9227fc50a60007146c45522e to your computer and use it in GitHub Desktop.
a small shell script that can be used within rsnapshot as cmd_cp. It provides snapshots generated with btrfs instead of hard-links
#!/bin/sh
# Arg 1: -al
# Arg 2: /testbtrfs/backups/hourly.0
# Arg 3: /testbtrfs/backups/hourly.1
btrfs subvolume snapshot $2 $3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment