We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, thanks for this great script please add
-no sudo -ssh with -C or even better bzip
ssh [email protected] zfs send -pv rpool/migration@zfs-auto-snap_daily-2019-09-09-0425 | bzip2 -c | bzcat| zfs recv -dvF rpool/repl/lsn
and an automatic source selection like this
#!/bin/bash date echo Pull Replikation - 02pull #EXCLUDE='| grep -v @' EXCLUDE='| grep -v part | grep -v base | grep -v alt' echo Auslassen von $EXCLUDE SCRIPTPATH='/mnt/Raid' SOURCEHOST='firewall.dom.tld' SOURCEPATH='Raid10/vms' DESTPATH='Raid/hdd/30' echo Replizere von $SOURCEHOST zu lokal $SOURCEPATH SOURCEZVOL=$(ssh root@$SOURCEHOST ls -b /dev/zvol/$SOURCEPATH $EXCLUDE) echo $SOURCEZVOL echo '' for ZVOL in $SOURCEZVOL do echo $SCRIPTPATH/backup-zfs -v $SOURCEHOST:$SOURCEPATH/$ZVOL $DESTPATH done
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, thanks for this great script
please add
-no sudo
-ssh with -C or even better bzip
ssh [email protected] zfs send -pv rpool/migration@zfs-auto-snap_daily-2019-09-09-0425 | bzip2 -c | bzcat| zfs recv -dvF rpool/repl/lsn
and an automatic source selection like this
#!/bin/bash
date
echo Pull Replikation - 02pull
#EXCLUDE='| grep -v @'
EXCLUDE='| grep -v part | grep -v base | grep -v alt'
echo Auslassen von $EXCLUDE
SCRIPTPATH='/mnt/Raid'
SOURCEHOST='firewall.dom.tld'
SOURCEPATH='Raid10/vms'
DESTPATH='Raid/hdd/30'
echo Replizere von $SOURCEHOST zu lokal $SOURCEPATH
SOURCEZVOL=$(ssh root@$SOURCEHOST ls -b /dev/zvol/$SOURCEPATH $EXCLUDE)
echo $SOURCEZVOL
echo ''
for ZVOL in $SOURCEZVOL
do
echo $SCRIPTPATH/backup-zfs -v $SOURCEHOST:$SOURCEPATH/$ZVOL $DESTPATH
done
The text was updated successfully, but these errors were encountered: