project-trident / trident-docs Public
A quick dirty zfs send & receive (back and restore)
Pages 17
Table of Contents
General Information
Terminal-based Configuration
Graphical Configuration
ZFS References
- ZFS Snapshots and Pruning
- ZFS Send and Receive
- Exporting/Importing Datasets
- Moving Default Home Directory to a Separate Drive
General How-To's
Clone this wiki locally
To import the external drive, all as root;
zpool import {this will show the pool ID#}
zpool import 4173329554950097962 {the ID of my external drive}
zfs mount {this should show it mounted on the /}
To backup to the external drive;
zfs send {last snapshot. If no snapshot, spool/directory}:
zfs list -t snapshot {grab the latest snapshot}
zfs send (latest snapshot) > /zfs_backup/(name) {or where ever your zfs back pool is located}
zfs export (pool name) {to un-mount to new system}
To restore from the external drive;
zpool import 4173329554950097962 {the ID of my external drive}
zfs receive -F (zpool)/home < /zfs_backup/(name) {or where ever your zfs back pool is located}
To do an incremental backup to the external drive;
zfs send -I (zpool)/(old snapshot) (zpool)/(new snapshot) > zfs_backup/(name) {or where ever your zfs back pool is located}
Quick Links
- Main Website: https://project-trident.org
- Sponsorships available! https://project-trident.org/sponsors
- Void Linux Documentation
- Void Linux Rosetta Stone: Dictionary of commands between different Linux distros.
- Void Linux FAQ