Update btrfs-backup script

This commit is contained in:
albert 2024-12-16 16:07:09 +01:00
parent 1a9ed94290
commit 9d8e794c24
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -73,7 +73,8 @@ verify_remote() {
# Function to get remote snapshots # Function to get remote snapshots
get_remote_snapshots() { get_remote_snapshots() {
ssh "$REMOTE_HOST" "find '$BASE_DEST_PATH' -maxdepth 1 -type d -name 'snapshot*' | sort -n" # ssh "$REMOTE_HOST" "find '$BASE_DEST_PATH' -maxdepth 2 -type d -name 'snapshot*' | sort -n"
ssh "$REMOTE_HOST" "btrfs subvolume list /volume1/ -t | grep `hostname` | grep $SNAPPER_CONFIG"
} }
# Function to cleanup old remote snapshots # Function to cleanup old remote snapshots