Skip to content

Instantly share code, notes, and snippets.

@teimur8
Last active May 31, 2018 08:00
Show Gist options
  • Select an option

  • Save teimur8/44cc159ae87e2c9d9aa9c96170b0a7eb to your computer and use it in GitHub Desktop.

Select an option

Save teimur8/44cc159ae87e2c9d9aa9c96170b0a7eb to your computer and use it in GitHub Desktop.

Revisions

  1. teimur8 revised this gist May 31, 2018. No changes.
  2. teimur8 revised this gist May 31, 2018. No changes.
  3. teimur8 revised this gist May 31, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion replication.sh
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,4 @@ zfs snapshot tank1/test-tom@init1

    zfs send tank1/test-tom@init1 | ssh 89.218.12.149 zfs receive tank1/test-tom

    zfs send -R tank1/subvol-102-disk-1@init | ssh 89.218.12.149
    zfs send -R tank1/subvol-102-disk-1@init | ssh 89.218.12.149 zfs receive tank1/subvol-102-disk-1
  4. teimur8 revised this gist May 31, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion replication.sh
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,4 @@ zfs snapshot tank1/test-tom@init1

    zfs send tank1/test-tom@init1 | ssh 89.218.12.149 zfs receive tank1/test-tom

    zfs send -R tank1/subvol-102-disk-1@init
    zfs send -R tank1/subvol-102-disk-1@init | ssh 89.218.12.149
  5. teimur8 revised this gist May 31, 2018. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion replication.sh
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,6 @@ zfs destroy tank1/vm-100-disk-2@snapshot1
    zfs snapshot tank1/test-tom@init1


    zfs send tank1/test-tom@init1 | ssh 89.218.12.149 zfs receive tank1/test-tom
    zfs send tank1/test-tom@init1 | ssh 89.218.12.149 zfs receive tank1/test-tom

    zfs send -R tank1/subvol-102-disk-1@init
  6. teimur8 revised this gist May 31, 2018. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions replication.sh
    Original file line number Diff line number Diff line change
    @@ -8,3 +8,6 @@ zfs destroy tank1/vm-100-disk-2@snapshot1


    zfs snapshot tank1/test-tom@init1


    zfs send tank1/test-tom@init1 | ssh 89.218.12.149 zfs receive tank1/test-tom
  7. teimur8 revised this gist May 31, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion replication.sh
    Original file line number Diff line number Diff line change
    @@ -7,4 +7,4 @@ zfs destroy tank1/vm-100-disk-2@snapshot1



    zfs snapshot mypool/somedata@snappycomeback
    zfs snapshot tank1/test-tom@init1
  8. teimur8 revised this gist May 31, 2018. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions replication.sh
    Original file line number Diff line number Diff line change
    @@ -4,3 +4,7 @@ zfs list -t all


    zfs destroy tank1/vm-100-disk-2@snapshot1



    zfs snapshot mypool/somedata@snappycomeback
  9. teimur8 revised this gist May 31, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion create.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    zfs create
    zfs create tank1/test-tom
  10. teimur8 revised this gist May 31, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion create.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    _
    zfs create
  11. teimur8 revised this gist May 31, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions create.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    _
  12. teimur8 revised this gist May 31, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions replication.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    zfs list -t snapshot
    #or
    zfs list -t all


    zfs destroy tank1/vm-100-disk-2@snapshot1
  13. teimur8 revised this gist May 31, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion replication.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    zfs list -t snapshot



    zfs destroy tank1/vm-100-disk-2@snapshot1
  14. teimur8 revised this gist May 31, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion replication.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    zfs list -t snapshot #
    zfs list -t snapshot



  15. teimur8 revised this gist May 31, 2018. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion replication.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    _
    zfs list -t snapshot #


  16. teimur8 renamed this gist May 31, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  17. teimur8 created this gist May 31, 2018.
    1 change: 1 addition & 0 deletions re
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    _