ssh/bup2ssh
BrainwreckedTech c80dca759c First sync
2019-08-23 20:31:57 -04:00

7 lines
165 B
Bash
Executable File

#!/usr/bin/env sh
HOST="${1}"
BDIR="${2}"
XZ_OPTS=-9e tar -cvpJ --one-file-system / | ssh "${HOST}" "( cat > ${BDIR}/${HOSTNAME}_$(date +%Y-%m-%d_%H:%M).tar.xz )"