bundlewrap/bundles/backup/files/backup_path
2022-03-27 13:30:16 +02:00

14 lines
232 B
Bash

#!/bin/bash
path=$1
if zfs list -H -o mountpoint | grep -q "$path"
then
/opt/backup/backup_path_via_zfs "$path"
elif test -d "$path"
then
/opt/backup/backup_path_via_rsync "$path"
else
echo "UNKNOWN PATH: $path"
exit 1
fi