public:duplicati
This is an old revision of the document!
Duplicati
Descarregar dependencies
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt update sudo apt install mono-devel gtk-sharp2 sudo apt install apt-transport-https nano git-core python software-properties-common dirmngr -y
Creem una carpeta temporal per l'instalador i ens posem dins:
mkdir /webroot/installers/duplicati cd /webroot/installers/duplicati
Baixem el paquet de duplicati i l'instalem
wget https://updates.duplicati.com/beta/duplicati_2.0.5.1-1_all.deb sudo apt install ./duplicati_2.0.5.1-1_all.deb -y
Creem i editem el fitxer /etc/systemd/system/duplicati.service
sudo nano /etc/systemd/system/duplicati.service
Posem el seguent contingut, guardem i borrem:
- duplicati.service
[Unit] Description=Duplicati web-server After=network.target [Service] Nice=19 IOSchedulingClass=idle EnvironmentFile=-/etc/default/duplicati ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS Restart=always [Install] WantedBy=multi-user.target
Editem el fitxer /etc/default/duplicati:
sudo nano /etc/default/duplicati
Afegim les DEAMON_OPTS com veiem a continuació:
- duplicati
# Defaults for duplicati initscript # sourced by /etc/init.d/duplicati # installed at /etc/default/duplicati by the maintainer scripts # # This is a POSIX shell fragment # # Additional options that are passed to the Daemon. DAEMON_OPTS="--webservice-interface=any --webservice-port=8200 --portable-mode --webservice-allowed-hostnames=*"
Arrenquem serveis i revisem estat:
sudo systemctl enable duplicati.service sudo systemctl daemon-reload sudo systemctl start duplicati.service sudo systemctl status duplicati.service
Entrem a la web IP:8200
Des de configuració podem afegir un password.
Podem connectar les copies de seguretat amb el Google Drive
public/duplicati.1616408671.txt.gz · Last modified: 2021/03/22 10:24 by marc