This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
zfs_snapshot_send_receive [2017/08/27 14:39] ian |
zfs_snapshot_send_receive [2020/02/13 22:55] (current) |
||
---|---|---|---|
Line 15: | Line 15: | ||
< | < | ||
ssh-keygen | ssh-keygen | ||
- | ssh-copy-id -i / | + | ssh-copy-id -i / |
</ | </ | ||
Line 24: | Line 24: | ||
< | < | ||
- | # zfs create data/test | + | destserver: |
+ | </ | ||
- | # zfs allow -u backupuser create, | + | < |
+ | 'zfs allow' does not yet work with ZFS on Linux < 0.7.0 to allow a non-root destination user | ||
- | # zfs allow data/test | + | < |
+ | destserver: | ||
+ | |||
+ | destserver: | ||
---- Permissions on data/test ---------------------------------------- | ---- Permissions on data/test ---------------------------------------- | ||
Local+Descendent permissions: | Local+Descendent permissions: | ||
user backupuser create, | user backupuser create, | ||
</ | </ | ||
+ | </ | ||
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 | ||
< | < | ||
- | :~# find / | + | :~# find / |
- | 281474976710655 | + | |
- | 281474976710653 | + | |
- | 281474976710576 | + | |
7 1 -rw-r--r-- | 7 1 -rw-r--r-- | ||
- | 281474976710579 | + | </ |
+ | |||
+ | < | ||
+ | destserver: | ||
+ | 7 1 -rw-r--r-- 1 root | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | :~# zfs diff data/ | ||
+ | M / | ||
+ | M / | ||
+ | + / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | :~# zfs diff data/test@2017-08-27-110000 | ||
+ | M / | ||
+ | + / | ||
</ | </ | ||