Created
July 18, 2016 06:36
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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