Hi everyone.
I have two zfs pools on my server, pool01, and pool02, mounted on /mnt/pool01 and /mnt/pool02 respectively. I want to backup particular directories within pool01, mainly Music, Docs, and Photos. I tried to create a snap using sudo snap pool01/Music@music-backup
but got an error cannot open 'pool01/Music': dataset does not exist
. After some reading I found that I have to create a new volume/dataset. To test I created a folder within pool01, called “test” and some empty files, file01, file02 and file03. Then I created a pool using `sudo zfs create -p pool01/test. I’m glad I did because all the files created earlier within that test folder were gone. How do I backup those folders now. Do i:
- copy the files to another temporary folders
- create volumes on both pools for each directory ( sudo zfs create pool01/Music, sudo zfs create pool02/Music) same for photos and docs
- move the files from the temporary folders to newly created zfs volumes and delete temp folders
- create snapshots because it now all works
will this work or am i missing something? Thanks in advance