[zfs-discuss] Incremental Backup

It Group storage.group.1 at gmail.com
Mon Dec 5 09:16:38 EST 2016


ok dear, But my scenario is :

1) Initialize the backup:

zfs snapshot srcpool/fs1 at snap1

zfs send srcpool/fs1 at snap1 > ./fullBackup

zfs receive dstpool/fs1 < ./fullBackup

2) Then you can incrementally transfer:

zfs snapshot srcpool/fs1 at snap2

zfs send -i snap1 srcpool/fs1 at snap2 > ./Incremental


zfs receive dstpool/fs1 <./Incremental


result show:

destination has snapshot(destPool at snap1)

Thanks for your helps,




On Mon, Dec 5, 2016 at 5:13 PM, Gordan Bobic via zfs-discuss <
zfs-discuss at list.zfsonlinux.org> wrote:

> Impossible to be sure without knowing exactly what you did to get the
> system into that state.
>
> Fundamentally, assuming both pools on the same host:
>
> 1) Initialize the backup:
> zfs snapshot srcpool/fs1 at snap1
> zfs send srcpool/fs1 at snap1 | zfs receive dstpool/fs1
>
> 2) Then you can incrementally transfer:
> zfs snapshot srcpool/fs1 at snap2
> zfs send -i srcpool/fs1 at snap1 srcpool/fs1 at snap2 | zfs receive dstpool/fs1
>
> Note that you cannot:
> zfs receive dstpool
> You need the file system name, e.g.:
> zfs receive dstpool/fsname
>
>
> On Mon, Dec 5, 2016 at 1:37 PM, It Group <storage.group.1 at gmail.com>
> wrote:
>
>> thanks,
>>  but dear,
>> when i use :
>> zfs recv -F destPool <. /incrementalbackup1
>>
>> it show and stop :
>> destination has snapshot(destPool at snap1)
>>
>> now , any way for solved it?
>>
>> thanks,
>>
>>
>> On Mon, Dec 5, 2016 at 4:41 PM, Gordan Bobic via zfs-discuss <
>> zfs-discuss at list.zfsonlinux.org> wrote:
>>
>>>
>>>
>>> On Mon, Dec 5, 2016 at 1:03 PM, It Group <storage.group.1 at gmail.com>
>>> wrote:
>>>
>>>> I'm sorry,
>>>> ok , you  say right,
>>>>
>>>> i do:
>>>> zfs send -i snap1 mypool/fs1 at snap2 > ./Incrementalbackup1
>>>>
>>>> now , how i import Incrementalbackup1 to destPool?
>>>>
>>>
>>> Assuming you already initialized mypool/fs1 on the target size with the
>>> full transfer:
>>>
>>> zfs receive mypool/fs1 < /incrementalbackup1
>>>
>>>
>>>
>>>>
>>>> thanks,
>>>>
>>>> On Mon, Dec 5, 2016 at 3:00 PM, Gordan Bobic via zfs-discuss <
>>>> zfs-discuss at list.zfsonlinux.org> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Mon, Dec 5, 2016 at 11:24 AM, It Group via zfs-discuss <
>>>>> zfs-discuss at list.zfsonlinux.org> wrote:
>>>>>
>>>>>> Hi Dears,
>>>>>>
>>>>>> I do :
>>>>>>
>>>>>> zfs snapshot mypool/fs1 at snap1
>>>>>>
>>>>>> zfs send mypool/fs1 at snap1 > ./fullbackup
>>>>>>
>>>>>> in destination pool:
>>>>>>
>>>>>> zfs recv -F destPool <./fullbackup
>>>>>>
>>>>>
>>>>> zfs receive -F destpool/fs1 < /fullbackup
>>>>>
>>>>>
>>>>>>
>>>>>> for next :
>>>>>>
>>>>>> zfs snapshot mypool/fs1 at snap2
>>>>>>
>>>>>> zfs send mypool/fs1 at snap1 > ./Incrementalbackup1
>>>>>>
>>>>>
>>>>> RTFM. From the man page:
>>>>>
>>>>> zfs send [-DnPpRveL] [-[iI] snapshot] snapshot
>>>>>
>>>>>            Creates  a stream representation of the second snapshot,
>>>>> which is written to standard output. The output can be redi‐
>>>>>            rected to a file or to a different system (for example,
>>>>> using ssh(1). By default, a full stream is generated.
>>>>>
>>>>>            -i snapshot
>>>>>
>>>>>                Generate an incremental stream from the first snapshot
>>>>> (the incremental  source)  to  the  second  snapshot  (the
>>>>>                incremental  target).   The incremental source can be
>>>>> specified as the last component of the snapshot name (the @
>>>>>                character and following) and it is assumed to be from
>>>>> the same file system as the incremental target.
>>>>>
>>>>> So the incantation on the source side is:
>>>>> zfs send -i mypool/fs1 at snap1 mypool/fs1 at snap2 > /fullbackup
>>>>>
>>>>> zfs receive is the same in both cases.
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> zfs-discuss mailing list
>>>>> zfs-discuss at list.zfsonlinux.org
>>>>> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss
>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> zfs-discuss mailing list
>>> zfs-discuss at list.zfsonlinux.org
>>> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss
>>>
>>>
>>
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at list.zfsonlinux.org
> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20161205/8ee466d8/attachment.html>


More information about the zfs-discuss mailing list