Restore from non zfs

Forssux

Member
Mar 27, 2022
62
4
13
Hi there,

I needed to rebuild my ZFS pool as is was running out of space 91% full.
This was also the time I switched from TrueNAS Core (FreeBSD) to Proxmox (Debian)
I had al my data on older disks on a proxmox but with MergerFS .

I want to restore my data and I use rsync -aSHPrvv --progress --delete r --exclude 'aquota*' --exclude 'snapraid*' --info=progress2 /mnt/Pool/QData/ root@192.168.1.5:/Pool/QData

This works but I had more than 1 Dataset... Pool/QData/QDocumenten was a second dataset. This QDocumenten is now a directory..what happens if I create a dataset with the same name?

kind regards
Guy
 
Hi there,

I needed to rebuild my ZFS pool as is was running out of space 91% full.
This was also the time I switched from TrueNAS Core (FreeBSD) to Proxmox (Debian)
I had al my data on older disks on a proxmox but with MergerFS .

I want to restore my data and I use rsync -aSHPrvv --progress --delete r --exclude 'aquota*' --exclude 'snapraid*' --info=progress2 /mnt/Pool/QData/ root@192.168.1.5:/Pool/QData

This works but I had more than 1 Dataset... Pool/QData/QDocumenten was a second dataset. This QDocumenten is now a directory..what happens if I create a dataset with the same name?

kind regards
Guy
Each dataset is its own filesystem that gets mounted in a folder as its mountpoint. If you already got a folder with that name with data in it then ZFS will mount that dataset in that folder and you won't be able to access the data that were there before. So make sure all target datasets are mounted before copying stuff to it using rsync.
 
Last edited:
  • Like
Reactions: Forssux