bundlewrap/bundles/backup/files/backup_path
mwiegand 0793aa0d9b wip
2021-06-26 00:42:06 +02:00

14 lines
232 B
Bash

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