diff options
author | Matthew Bloch <matthew@bytemark.co.uk> | 2014-12-04 18:35:36 +0000 |
---|---|---|
committer | Matthew Bloch <matthew@bytemark.co.uk> | 2014-12-04 18:35:36 +0000 |
commit | fcf00ad61a60c9e99a7d45380803f0dbf0b858f5 (patch) | |
tree | b819c65842ce37dbd80108464425e0c0779534c9 /README.md | |
parent | a7162ddb80be70443d5617cac5d71ce6521e9f42 (diff) |
Realised we don't need sudo at all to run our btrfs commands, removed all
references.
Diffstat (limited to 'README.md')
-rwxr-xr-x | README.md | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -19,12 +19,14 @@ the server address should be enough. Setting up: server ------------------ Install the 'byteback' package on the server, along with its dependencies -(rsync, sudo). +(rsync and ruby-ffi). You then need to perform the following local setup on the server, which can securely handle backups for multiple clients. You need a dedicated user (which is usually called 'byteback') with a home directory on a btrfs -filesystem, and some privileges to run commands through sudo. +filesystem. You will need to mount the filesystem with the +'user_subvol_rm_allowed' flag to enable pruning to work (or run that part +as root). The following commands are appropriate for a Debian system, you might need to alter it for other Linux distributions, or if you are not using LVM @@ -35,15 +37,6 @@ for your discs: # adduser --system byteback --home /byteback --shell /bin/bash - # Allow the backup user to run the snapshot command - # - # echo <<SUDOERS >/etc/sudoers.d/byteback - byteback ALL = (root) NOPASSWD: /usr/local/bin/byteback-snapshot - byteback ALL = (root) NOPASSWD: /usr/bin/byteback-snapshot - byteback ALL = (root) NOPASSWD: /sbin/btrfs subvolume create - Defaults:byteback !requiretty - SUDOERS - # Create a dedicated btrfs filesystem for the user, and add that as its home # lvcreate my_volume_group --name byteback --size 1000GB |