User Tools

Site Tools


zfs_snapshot_send_receive

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
zfs_snapshot_send_receive [2017/08/27 15:16]
ian
zfs_snapshot_send_receive [2020/02/13 22:55] (current)
Line 15: Line 15:
 <code> <code>
 ssh-keygen ssh-keygen
-ssh-copy-id -i /root/.ssh/id_rsa.pub backup@desterver+ssh-copy-id -i /root/.ssh/id_rsa.pub root@destserver
 </code> </code>
  
Line 25: Line 25:
 <code> <code>
 destserver:~# zfs create data/test destserver:~# zfs create data/test
 +</code>
  
 +<note>
 +'zfs allow' does not yet work with ZFS on Linux < 0.7.0 to allow a non-root destination user
 +
 +<code>
 destserver:~# zfs allow -u backupuser create,receive,rename,mount,send data/test destserver:~# zfs allow -u backupuser create,receive,rename,mount,send data/test
  
Line 33: Line 38:
         user backupuser create,mount,receive,rename,send         user backupuser create,mount,receive,rename,send
 </code> </code>
 +</note>
  
 3. Create a snapshot schedule consisting of a local SRC schedule, and the remote DST schedule to send the snapshots. 3. Create a snapshot schedule consisting of a local SRC schedule, and the remote DST schedule to send the snapshots.
Line 91: Line 97:
 5. You can see how the files and directories looked at snapshot time by accessing the hidden .zfs directory 5. You can see how the files and directories looked at snapshot time by accessing the hidden .zfs directory
 <code> <code>
-:~# find /data/test/.zfs -ls +:~# find /data/test/.zfs -type f -ls
-281474976710655      0 dr-xr-xr-x   1 root     root            0 Aug 27 09:40 /data/test/.zfs +
-281474976710653      0 dr-xr-xr-x   2 root     root            2 Aug 27 11:30 /data/test/.zfs/snapshot +
-281474976710576      0 dr-xr-xr-x   1 root     root            0 Aug 27 11:36 /data/test/.zfs/snapshot/2017-08-27-113000+
               7      1 -rw-r--r--   1 root     root            0 Aug 27 11:08 /data/test/.zfs/snapshot/2017-08-27-113000/a.txt               7      1 -rw-r--r--   1 root     root            0 Aug 27 11:08 /data/test/.zfs/snapshot/2017-08-27-113000/a.txt
-281474976710579      0 dr-xr-xr-x   1 root     root            0 Aug 27 11:36 /data/test/.zfs/snapshot/2017-08-27-110000 
 </code> </code>
  
 <code> <code>
-destserver:~# find /data/test/.zfs -ls +destserver:~# find /data/test/.zfs -type f -ls
-281474976710655      0 dr-xr-xr-x   1 root     root            0 Aug 27 14:00 /data/test/.zfs +
-281474976710653      0 dr-xr-xr-x   2 root     root            2 Aug 27 14:30 /data/test/.zfs/snapshot +
-281474976710323      0 dr-xr-xr-x   1 root     root            0 Aug 27 14:40 /data/test/.zfs/snapshot/2017-08-27-113000+
               7      1 -rw-r--r--   1 root     root            0 Aug 27 14:08 /data/test/.zfs/snapshot/2017-08-27-113000/a.txt               7      1 -rw-r--r--   1 root     root            0 Aug 27 14:08 /data/test/.zfs/snapshot/2017-08-27-113000/a.txt
-281474976710335      0 dr-xr-xr-x   1 root     root            0 Aug 27 14:40 /data/test/.zfs/snapshot/2017-08-27-110000 
 </code> </code>
  
zfs_snapshot_send_receive.1503861387.txt.gz · Last modified: 2020/02/13 22:55 (external edit)

free spam filter