I am currently developing a backup script that is using send/receive to backup my datasets. Currently I have my battle with the delegation using 'zfs allow' See the following log:
And here "the snake bit its tail" - the allow on zbackup/RPI-backup permissions seem gone. Also a bit strange, that the snapshot is created and on the same insufficient privileges are mentioned.
(BTW my privileges on storage are the same )
Any hints, what could be wrong ?
zfs send -LVcR -i @Friday storage/RPI@Dienstag | zfs receive -F zbackup/RPI-backup
Code:
full send of storage/RPI@Dienstag estimated size is 5,02M
full send of storage/RPI@Dienstag estimated size is 5,02M
cannot mount 'zbackup/RPI-backup': Insufficient privileges
zfs allow zbackup/RPI-backup
Code:
---- Permissions on zbackup ------------------------------------------
Local+Descendent permissions:
user martin bookmark,compression,create,destroy,hold,mount,mountpoint,receive,rename,send,snapshot,userprop
sudo zfs allow -ldu martin create,destroy,mount,receive,rename,send,snapshot,hold,compression,mountpoint,bookmark,userprop zbackup/RPI-backup
zfs allow zbackup/RPI-backup
Code:
---- Permissions on zbackup/RPI-backup -------------------------------
Local+Descendent permissions:
user martin bookmark,compression,create,destroy,hold,mount,mountpoint,receive,rename,send,snapshot,userprop
---- Permissions on zbackup ------------------------------------------
Local+Descendent permissions:
user martin bookmark,compression,create,destroy,hold,mount,mountpoint,receive,rename,send,snapshot,userprop
zfs send -LVcR -i @Friday storage/RPI@Dienstag | zfs receive -F zbackup/RPI-backup
Code:
full send of storage/RPI@Dienstag estimated size is 5,02M
full send of storage/RPI@Dienstag estimated size is 5,02M
cannot receive new filesystem stream: destination has snapshots (eg. zbackup/RPI-backup@Dienstag)
must destroy them to overwrite it
warning: cannot send 'storage/RPI@Dienstag': signal received
zfs destroy zbackup/RPI-backup@%
zfs send -LVcR -i @Friday storage/RPI@Dienstag | zfs receive -F zbackup/RPI-backup
Code:
full send of storage/RPI@Dienstag estimated size is 5,02M
full send of storage/RPI@Dienstag estimated size is 5,02M
cannot mount 'zbackup/RPI-backup': Insufficient privileges
(BTW my privileges on storage are the same )
Any hints, what could be wrong ?