Skip to content

Instantly share code, notes, and snippets.

@ettavolt
ettavolt / 057-reverse-receive_test.sh
Created April 2, 2023 22:38
A btrfs-progs test case, showing a backup+sync setup between two (or more) PCs with an external drive.
#!/bin/bash
#
# Receive in reverse direction must not throw an error if it can find an earlier "sent" parent.
# In general, shows a backup+sync setup between two (or more) PCs with an external drive.
source "$TEST_TOP/common"
check_prereq mkfs.btrfs
check_prereq btrfs
check_global_prereq dd