summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMatthew Bloch <matthew@bytemark.co.uk>2014-12-04 18:35:36 +0000
committerMatthew Bloch <matthew@bytemark.co.uk>2014-12-04 18:35:36 +0000
commitfcf00ad61a60c9e99a7d45380803f0dbf0b858f5 (patch)
treeb819c65842ce37dbd80108464425e0c0779534c9 /README.md
parenta7162ddb80be70443d5617cac5d71ce6521e9f42 (diff)
Realised we don't need sudo at all to run our btrfs commands, removed all
references.
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md15
1 files changed, 4 insertions, 11 deletions
diff --git a/README.md b/README.md
index 325fb7a..3d6dc6c 100755
--- a/README.md
+++ b/README.md
@@ -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