This repository has been archived by the owner on Mar 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Exporting and Importing a user dataset onto another machine
Sven Putze edited this page Mar 1, 2020
·
2 revisions
zfs list
In this case it is:
trident/usr/home
Take note of the size of the dataset.
In our case were are using a USB Stick. Make sure whatever drive you select is large enough for your dataset.
- Fat32:
sudo mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /media/usbstick
- ExFat:
sudo mount.exfat /dev/da0s1 /mnt/usbstick
- NTFS:
sudo ntfs-3g /dev/da0s1 /media/usbstick -o ro,uid=1001,gid=1001
zfs snapshot -r trident/usr/home/@migration
zfs send -R trident/usr/home@migration > /mnt/USBstick/tridenthomedir.zfs
Now the USB Stick contains a replica of your main_pool as it appeared at the moment when you took the snapshot. Take this over to the computer you wish to import your pool and plug in your external drive and mount it.
You cannot be logged in as the user who's home directory you are importing.
This will completely overwrite the /usr/home
directory. Any changes that were made previously, will need to be reapplied after you receive the older dataset.
zfs receive -F < tridenthomedir.zfs
sudo reboot
- 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