Merge "Streamline documented bup setup process"

This commit is contained in:
Zuul 2019-07-18 13:33:08 +00:00 committed by Gerrit Code Review
commit 876e7b0dbd

View File

@ -239,20 +239,18 @@ And then ``cat /root/.ssh/id_rsa.pub`` for use later.
On the backup servers:: On the backup servers::
# add bup user # add bup user
sudo su -
BUPUSER=bup-<short-servername> # eg, bup-jenkins-dev BUPUSER=bup-<short-servername> # eg, bup-jenkins-dev
useradd -r $BUPUSER -s /bin/bash -d /opt/backups/$BUPUSER -m sudo useradd -r $BUPUSER -s /bin/bash -d /opt/backups/$BUPUSER -m
exit
sudo su - $BUPUSER sudo su - $BUPUSER
# should be in home directory /opt/backups/$BUPUSER
mkdir .ssh
cat >.ssh/authorized_keys
# initalise bup # initalise bup
bup init bup init
and add this to the authorized_keys file:: # should be in home directory /opt/backups/$BUPUSER
mkdir .ssh
cat >.ssh/authorized_keys
write this into the authorized_keys file and end with ^D on a blank line::
command="BUP_DEBUG=0 BUP_FORCE_TTY=3 bup server",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty <ssh key from earlier> command="BUP_DEBUG=0 BUP_FORCE_TTY=3 bup server",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty <ssh key from earlier>