Backing up to another pool, basic stuff, best way?

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Hi,

I've opted to put 2 disks in my system with NO redundancy, I understand the risks, the data isn't super important. However I would like a weekly backup instead, maybe once a week, highly compressed, to another pool.

The contents, at the moment is:

Some normal folders and files. (Honestly I just want the folder structure and permissions, not even the contents! happy with 0 byte file copies.....)
I have my iocage folder and subfolders
Now the final one and the most important is the "VM" dataset with 4 zvols attached for virtual machines. (These are snapshotted)

As a still mostly Windows guy, I like the idea of a backup being a FILE I can work with and trust, something I can copy.
My VM zvols I can't even see when I go to /mnt/SSD/VM - it shows 0 bytes.

So my questions:
Can I write out each zvol to a file? or should I create a single snapshot on another volume? Can I define a much heavier compression ratio for the snapshot?
Is there a command I can use to make an exact copy of a dataset except every file is 0 bytes - bonus if it's just into a compressed file?
 
Top