Skip to content

Instantly share code, notes, and snippets.

@gaikokujinch
Last active March 5, 2017 11:37
Show Gist options
  • Save gaikokujinch/a0992a078ae2e24d200e0401d8c697da to your computer and use it in GitHub Desktop.
Save gaikokujinch/a0992a078ae2e24d200e0401d8c697da to your computer and use it in GitHub Desktop.
Urbackup

Urbackup

=======

ToC

Notes

jls
jexec 18 tcsh

Inside the jail

Optional: give root a password

passwd

Install cryptopp

portsnap fetch extract
portsnap fetch update
cd /usr/ports/security/cryptopp/ && make install clean BATCH="YES"

OR

cd /usr/ports/security/cryptopp/ && make config-recursive && make install clean

Add user urbackup

adduser

Username: urbackup Full name: Urbackup Uid: (default) Login group: (default) Login group is urbackup. Invite urbackup into other groups: wheel Login class: (default) Shell: nologin Home directory: (default) Home directory permissions: (default) Use password-based authentication: no Lock out the account after creation: (default) OK?: yes Add another user?: no

Install Urbackup

mkdir /urbackup cd /urbackup curl -O https://hndl.urbackup.org/Server/2.0.38/urbackup-server-2.0.38.tar.gz tar xf urbackup-server-2.0.38.tar.gz cd urbackup-server-2.0.38 ./configure make install -j4

Add script

ee /etc/rc.local

Copy script into this file

chmod +x /etc/rc.local

Restart jail

http://10.0.0.25:55414

#!/bin/sh
/usr/local/sbin/urbackupsrv run -d -g 104857600 -u root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment