Skip to content
New issue

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

Feature Reqest #2

Open
cpzengel opened this issue Oct 31, 2019 · 0 comments
Open

Feature Reqest #2

cpzengel opened this issue Oct 31, 2019 · 0 comments

Comments

@cpzengel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant