Hello, apologies if this has already been asked, I have extensively Googled and was unable to find any definite solutions which worked on FreeBSD.
I use ZFS to manage my data and find it's a handy way of backing it up to removable USB drives. However, the removable USB drives being of rather limited capacity are becoming quite full, and if possible I would rather not split the backup across multiple drives (increased chance of physical loss, more points of failure etc, at least depending on how you look at it).
Anyway, my problem is this. I used a homebrew solution to send/recv stuff (basically new snapshot, zfs send -R filestore/filesys@new | zfs recv -Fvu backup/filesys for full backups, zfs send -i filestore/filesys@old filestore/filesys@new | zfs recv -dvu backup/filesys for incrementals. Full backups are usually just for new backup drives with old ones just being pruned occasionally).
The trouble is, the filesystems containing the more valuable data has copies set to 3 which is great on a live system but probably not required on backups (though some may disagree). I would like the receiving end to change that value to 1 and also turn on compression on particular filesystems (though not all: no point trying to compress my music and photo storage, for instance) but I can't figure out how to do it. It seems that neither send nor recv has an option to change attributes, I can't do it in advance as it complains that the destination filesystem already exists, and I suspect that doing it afterwards would also mess up further incremental updates. Plus it would be very slow, my USB does 30 MBytes/sec on a good day so it takes over a day to run a full backup. I did have a much faster card (FBSD doesn't seem to support many at the affordable end) but it died after a few weeks. :/ But I digress.
Any thoughts? I'm currently using a Nov 2016 vintage 12.0-CURRENT and should really upgrade but have been avoiding the potential trauma; if newer versions do what I need I am prepared to bite the bullet, though.
tl;dr version: zfs send/receive: sending filesystem has the properties copies=3 and compression=off; I want the receiving filesystem to have copies=1 and compression=on. Is this possible on 12.0-CURRENT?
I use ZFS to manage my data and find it's a handy way of backing it up to removable USB drives. However, the removable USB drives being of rather limited capacity are becoming quite full, and if possible I would rather not split the backup across multiple drives (increased chance of physical loss, more points of failure etc, at least depending on how you look at it).
Anyway, my problem is this. I used a homebrew solution to send/recv stuff (basically new snapshot, zfs send -R filestore/filesys@new | zfs recv -Fvu backup/filesys for full backups, zfs send -i filestore/filesys@old filestore/filesys@new | zfs recv -dvu backup/filesys for incrementals. Full backups are usually just for new backup drives with old ones just being pruned occasionally).
The trouble is, the filesystems containing the more valuable data has copies set to 3 which is great on a live system but probably not required on backups (though some may disagree). I would like the receiving end to change that value to 1 and also turn on compression on particular filesystems (though not all: no point trying to compress my music and photo storage, for instance) but I can't figure out how to do it. It seems that neither send nor recv has an option to change attributes, I can't do it in advance as it complains that the destination filesystem already exists, and I suspect that doing it afterwards would also mess up further incremental updates. Plus it would be very slow, my USB does 30 MBytes/sec on a good day so it takes over a day to run a full backup. I did have a much faster card (FBSD doesn't seem to support many at the affordable end) but it died after a few weeks. :/ But I digress.
Any thoughts? I'm currently using a Nov 2016 vintage 12.0-CURRENT and should really upgrade but have been avoiding the potential trauma; if newer versions do what I need I am prepared to bite the bullet, though.
tl;dr version: zfs send/receive: sending filesystem has the properties copies=3 and compression=off; I want the receiving filesystem to have copies=1 and compression=on. Is this possible on 12.0-CURRENT?