The facts:
We have a couple of ZFS pools that we want to backup with incremental snapshots. The snapshots are sent daily to a backup server that doesn't support ZFS like that:
[CMD=""]# zfs send -R -i tank/test@1 tank/test@2 | ssh gkontos@10.10.10.131 "cat > test@2"[/CMD]
[CMD=""]# zfs send -R -i tank/test@2 tank/test@3 | ssh gkontos@10.10.10.131 "cat > test@3"[/CMD]
Our backup server will contain the original snapshot and our incremental snapshots. Eventually it will look something like this:
The problem:
The reason why we backup our pools is because we are afraid that one day we might loose our data. So, in this imaginary scenario, our server exploded and our disks became toasted. But we have our backups.
In order to perform a restore we would have to start receiving the first snapshot and then the rest one by one. Something like this:
[CMD=""]# zfs receive -Fv tank/test < test@1[/CMD]
[CMD=""]# zfs receive -Fv tank/test < test@2[/CMD]
[CMD=""]# ...[/CMD]
This works and we will end up with our latest backup. But it is not very convenient to do this for each snapshot separately.
Unfortunately, zfs receive does not support the -i flag. Meaning that something like this will not work:
[CMD=""]# zfs receive -Fvi tank/test < test@1 test@2 test@3[/CMD]
The solution:
That's something I would expect as a reply to this thread
Best regards,
George
We have a couple of ZFS pools that we want to backup with incremental snapshots. The snapshots are sent daily to a backup server that doesn't support ZFS like that:
[CMD=""]# zfs send -R -i tank/test@1 tank/test@2 | ssh gkontos@10.10.10.131 "cat > test@2"[/CMD]
[CMD=""]# zfs send -R -i tank/test@2 tank/test@3 | ssh gkontos@10.10.10.131 "cat > test@3"[/CMD]
Our backup server will contain the original snapshot and our incremental snapshots. Eventually it will look something like this:
Code:
[FILE]test@1[/FILE] [FILE]test@2[/FILE] [FILE]test@3[/FILE] [FILE]test@4[/FILE]
The problem:
The reason why we backup our pools is because we are afraid that one day we might loose our data. So, in this imaginary scenario, our server exploded and our disks became toasted. But we have our backups.
In order to perform a restore we would have to start receiving the first snapshot and then the rest one by one. Something like this:
[CMD=""]# zfs receive -Fv tank/test < test@1[/CMD]
[CMD=""]# zfs receive -Fv tank/test < test@2[/CMD]
[CMD=""]# ...[/CMD]
This works and we will end up with our latest backup. But it is not very convenient to do this for each snapshot separately.
Unfortunately, zfs receive does not support the -i flag. Meaning that something like this will not work:
[CMD=""]# zfs receive -Fvi tank/test < test@1 test@2 test@3[/CMD]
The solution:
That's something I would expect as a reply to this thread
Best regards,
George