urbackup client install functional
This commit is contained in:
parent
875027f99b
commit
0ed87e11ee
@ -5,7 +5,7 @@ ConditionPathExists=/usr/local/sbin/urbackupclientbackend
|
|||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
ExecStart=/usr/local/sbin/urbackupclientbackend -d
|
ExecStart=/usr/local/sbin/urbackupclientbackend -d
|
||||||
PIDFile = /var/run/urbackup_clt.pid
|
PIDFile = /var/run/urbackup_srv.pid
|
||||||
TimeoutSec=0
|
TimeoutSec=0
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -26,6 +26,8 @@ if [ ! -d "$_assets" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# install urbackup client
|
# install urbackup client
|
||||||
# https://www.urbackup.org/client_debian_ubuntu_install.html
|
# https://www.urbackup.org/client_debian_ubuntu_install.html
|
||||||
# https://blog.stephane-huc.net/systeme/debian/urbackup_client_gui
|
# https://blog.stephane-huc.net/systeme/debian/urbackup_client_gui
|
||||||
@ -47,7 +49,23 @@ make -j4
|
|||||||
make install
|
make install
|
||||||
|
|
||||||
# Make sure that the UrBackup client backend runs correctly
|
# Make sure that the UrBackup client backend runs correctly
|
||||||
urbackupclientbackend -v info
|
# urbackupclientbackend -v info
|
||||||
|
|
||||||
|
# configure
|
||||||
|
echo -n "Please provide the urbackup-server's ip : "
|
||||||
|
read _ip
|
||||||
|
echo -n "Please provide the internet_authkey of server : "
|
||||||
|
read _authkey
|
||||||
|
|
||||||
|
echo "internet_server=$_ip
|
||||||
|
internet_server_port=55415
|
||||||
|
internet_authkey=$_authkey
|
||||||
|
internet_mode_enabled=true" > /usr/local/var/urbackup/data/settings.cfg
|
||||||
|
|
||||||
|
# firewall
|
||||||
|
ufw allow from "$_ip" to any port 35621
|
||||||
|
ufw allow from "$_ip" to any port 35622
|
||||||
|
ufw allow from "$_ip" to any port 35623
|
||||||
|
|
||||||
# install and enable systemd service
|
# install and enable systemd service
|
||||||
cp "$_assets"/urbackup.service /etc/ststemd/system/
|
cp "$_assets"/urbackup.service /etc/ststemd/system/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user