mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
fix unclosed code block, command prompts, spelling
This commit is contained in:
parent
4e38da9b3d
commit
af92e7ff50
@ -221,7 +221,7 @@ Delete dataset
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Datasets cannot be deleted if they have any snapshots
|
# Datasets cannot be deleted if they have any snapshots
|
||||||
zfs destroy tank/root/home
|
$ zfs destroy tank/root/home
|
||||||
```
|
```
|
||||||
|
|
||||||
Get / set properties of a dataset
|
Get / set properties of a dataset
|
||||||
@ -294,6 +294,7 @@ tank/home/sarlalian@now 0 - 259M -
|
|||||||
tank/home/alice@now 0 - 156M -
|
tank/home/alice@now 0 - 156M -
|
||||||
tank/home/bob@now 0 - 156M -
|
tank/home/bob@now 0 - 156M -
|
||||||
...
|
...
|
||||||
|
```
|
||||||
|
|
||||||
Destroy snapshots
|
Destroy snapshots
|
||||||
|
|
||||||
@ -313,13 +314,13 @@ Renaming Snapshots
|
|||||||
$ zfs rename tank/home/sarlalian@now tank/home/sarlalian@today
|
$ zfs rename tank/home/sarlalian@now tank/home/sarlalian@today
|
||||||
$ zfs rename tank/home/sarlalian@now today
|
$ zfs rename tank/home/sarlalian@now today
|
||||||
|
|
||||||
# zfs rename -r tank/home@now @yesterday
|
$ zfs rename -r tank/home@now @yesterday
|
||||||
```
|
```
|
||||||
|
|
||||||
Accessing snapshots
|
Accessing snapshots
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# CD Into a snapshot directory
|
# CD into a snapshot directory
|
||||||
$ cd /home/.zfs/snapshot/
|
$ cd /home/.zfs/snapshot/
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -335,11 +336,11 @@ $ zfs send tank/home/sarlalian@now | zfs recv backups/home/sarlalian
|
|||||||
# Send a snapshot to a remote host
|
# Send a snapshot to a remote host
|
||||||
$ zfs send tank/home/sarlalian@now | ssh root@backup_server 'zfs recv tank/home/sarlalian'
|
$ zfs send tank/home/sarlalian@now | ssh root@backup_server 'zfs recv tank/home/sarlalian'
|
||||||
|
|
||||||
# Send full dataset with snapshos to new host
|
# Send full dataset with snapshots to new host
|
||||||
$ zfs send -v -R tank/home@now | ssh root@backup_server 'zfs recv tank/home'
|
$ zfs send -v -R tank/home@now | ssh root@backup_server 'zfs recv tank/home'
|
||||||
```
|
```
|
||||||
|
|
||||||
Cloneing Snapshots
|
Cloning Snapshots
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Clone a snapshot
|
# Clone a snapshot
|
||||||
|
Loading…
Reference in New Issue
Block a user