7 lines
165 B
Bash
Executable File
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 )"
|