linuxscripts/user-config/bash_functions
Eduard Tolosa a286cd1bc7 Update
2021-02-19 02:28:38 -05:00

17 lines
350 B
Bash

#!/usr/bin/env bash
nscopy() {
if [[ "$#" -ne 3 ]]; then
echo "Usage: nscopy machine-name host_source_path dest_path"
else
machinectl copy-to $1 $2 $3/${2##*/}
fi
}
nsretr() {
if [[ "$#" -ne 3 ]]; then
echo "Usage: nsretr machine-name machine_source_path host_dest_path"
else
machinectl copy-from $1 $2 $3/${2##*/}
fi
}