psy0rz / zfs_autobackup

ZFS autobackup is used to periodicly backup ZFS filesystems to other locations. Easy to use and very reliable.
https://github.com/psy0rz/zfs_autobackup
GNU General Public License v3.0
583 stars 62 forks source link

Getting started states you need root access across servers, you do not. #186

Closed stephenhouser closed 1 year ago

stephenhouser commented 1 year ago

The getting started guide states: "With a pull backup, the target machine will have root access to the source machine."

The zfs allow will allow you to grant send, snapshot, hold and other required permissions on a dataset. Thus not requiring "root access to the source machine." You can grant those to any account on the source machine.

psy0rz commented 1 year ago

you are right, but then you make sure your user has write access to /dev/zfs as well.

i'll update the documentation to reflect this, thanks

psy0rz commented 1 year ago

I added a note https://github.com/psy0rz/zfs_autobackup/wiki#setup-ssh-login and i changed that text to 'ssh access' instead of 'root access'

stephenhouser commented 1 year ago

In setting up, the account will need destroy,hold,mount,release,send,snapshot as in:

zfs allow USER destroy,hold,mount,release,send,snapshot tank/dataset`

On Ubuntu 22.04 LTS it looks like /dev/zfs is world-writable by default. I don't recall changing that. Other distros may vary.