Restore from non zfs

Forssux

Member
Mar 27, 2022
56
4
8
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

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!