Skip to content

zfs recv -x and -o fail when property is invalid (missing) #6371

Closed
@prometheanfire

Description

@prometheanfire

System information

Type Version/Name
Distribution Name gentoo
Distribution Version updated
Linux Kernel 4.9
Architecture x86_86
ZFS Version probably around 0.7.0rc2
SPL Version same time period

Describe the problem you're observing

# zfs send -Lecp storage-pool/remote-backups/vm01-vms/usr@local-backup-201707091859 | zfs recv -duvF -o mountpoint=none backup04-zp00/backups
receiving full stream of storage-pool/remote-backups/vm01-vms/usr@local-backup-201707091859 into backup04-zp00/backups/remote-backups/vm01-vms/usr@local-backup-201707091859
cannot receive new filesystem stream: property 'mountpoint' does not apply to datasets of this type

I'd like to be able to use a simple script to sync backup to an external drive (offsite) and just exclude mountpoint in either the send or recv if the property exists or not

Describe how to reproduce the problem

use recv -x mountpoint on a volume

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions