allanjude / zxfer

A continuation of development on zxfer, a popular script for managing ZFS snapshot replication
BSD 2-Clause "Simplified" License
124 stars 40 forks source link

zxfer doesn't transfer zfs data sets that have no snapshots #50

Open eohrnberger opened 5 years ago

eohrnberger commented 5 years ago

Hi, Love zxfer, and have cron jobs that transfer data sets from primary storage to backup storage, and it works very well.

I had a zfs dataset that didn't have any snapshots and wanted to transfer that dataset to backups. No problem, use zxfer. Except it didn't.

I added a single snapshot to the source dataset, and then all was well.

But I wonder if this capability in zxfer might be included in future release.

eohrnberger commented 5 years ago

Also, could the manpage be updated to remove http://www.zxfer.org and replace it with https://github.com/allanjude/zxfer?

allanjude commented 5 years ago

Hi, Love zxfer, and have cron jobs that transfer data sets from primary storage to backup storage, and it works very well.

I had a zfs dataset that didn't have any snapshots and wanted to transfer that dataset to backups. No problem, use zxfer. Except it didn't.

I added a single snapshot to the source dataset, and then all was well.

But I wonder if this capability in zxfer might be included in future release.

In ZFS it is not possible to replicate without a snapshot. zxfer does not create snapshots.

allanjude commented 5 years ago

Also, could the manpage be updated to remove http://www.zxfer.org and replace it with https://github.com/allanjude/zxfer?

Yes, that is a good idea.

eohrnberger commented 5 years ago

Hi, Love zxfer, and have cron jobs that transfer data sets from primary storage to backup storage, and it works very well. I had a zfs dataset that didn't have any snapshots and wanted to transfer that dataset to backups. No problem, use zxfer. Except it didn't. I added a single snapshot to the source dataset, and then all was well. But I wonder if this capability in zxfer might be included in future release.

In ZFS it is not possible to replicate without a snapshot. zxfer does not create snapshots.

Yeah, then this is not possible, but thought that I'd ask.

jornane commented 2 years ago

I just ran into the same issue. The dataset was a canmount=off dataset, so there has never been any need to snapshot it.

Would it be a solution to let zxfer create the dataset instead of transferring, using the same properties it'd have used if it was sent?