blob: 31fae832d6448cefc38345fdbf8186ca064903ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#! /bin/bash
function one_zsync()
{
dset=$1
shift
snap=$1
shift
zfs send -R -D jogamp_org/$dset@$snap | ssh root@jausoft.com "zfs receive -v -u -d jausoft_com/backup/jogamp.org"
}
function all_zsync()
{
snap=$1
shift
one_zsync data $snap
one_zsync services $snap
one_zsync system $snap
one_zsync users $snap
}
function do_zsync()
{
all_zsync setup_complete
echo DONE
}
do_zsync >& zsync-jogamp2jausoft.log &
disown $!
|