Backup and Restore using Duplicati - Linux
Download and Install Duplicati
- Login to your CenOS instance and check the version of OS.
- The commands given on this page work with CentOS Version 7.
![CentOS Version Check.png 1916](https://files.readme.io/1f2b52d-CentOS_Version_Check.png)
- Change to super user using the command:
sudo su
![Sudo SU.png 1917](https://files.readme.io/4c2a78d-Sudo_SU.png)
- Now install Mono on your Centos server using the following commands:
yum install yum-utils
![Install utils.png 1917](https://files.readme.io/893c815-Install_utils.png)
rpm --import http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
![RPM Import.png 1917](https://files.readme.io/f51a3f1-RPM_Import.png)
yum-config-manager --add-repo http://download.mono-project.com/repo/centos7/
![Config manager.png 1917](https://files.readme.io/9fd3cef-Config_manager.png)
yum install mono-devel
![Install mono-devel.png 1917](https://files.readme.io/5c63179-Install_mono-devel.png)
- Now install Duplicati using the following commands:
yum install epel-release
![Install Epel.png 1917](https://files.readme.io/7d2eb77-Install_Epel.png)
yum install libappindicator
![Install Libapp.png 1942](https://files.readme.io/70e05b7-Install_Libapp.png)
-
curl -O https://updates.duplicati.com/beta/duplicati-2.0.5.1-2.0.5.1_beta_20200118.noarch.rpm
-
yum install duplicati*
![Install Duplicati.png 1917](https://files.readme.io/ef6b897-Install_Duplicati.png)
Important Note
- For the latest version, please CLICK HERE
-
Now run Duplicati as a service.
-
Edit the duplicati.service file using the command:
vi /etc/systemd/system/duplicati.service
-
Once the file is open, insert the following into it and save the file:
[Unit]
Description=Duplicati Backup software
[Service]
ExecStart=/usr/bin/mono /usr/lib/duplicati/Duplicati.Server.exe --webservice-interface=any --webservice-sslcertificatefile=/home/centos/ssl/my.pfx --webservice-sslcertificatepassword=admin@123
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target
![VI change.png 1919](https://files.readme.io/1229b45-VI_change.png)
Add Self-Signed SSL Certificate
- Create a .pem file using the command:
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
![SSL - 1.png 1917](https://files.readme.io/5b2874c-SSL_-_1.png)
- Convert the .pem file into .pfx format using the command:
openssl pkcs12 -export -out cert.pfx -inkey key.pem -in cert.pem
![SSL - 2.png 1917](https://files.readme.io/bb24b81-SSL_-_2.png)
- Make the following changes in the duplicati.service file.
![Make changes in .pfx.png 1917](https://files.readme.io/f2a1918-Make_changes_in_.pfx.png)
-
Now, enable the Duplicati Service using the command:
systemctl enable duplicati
-
To check the status of the Duplicati service, use the command:
systemctl status duplicati
![Duplicati Status.png 1917](https://files.readme.io/091e7bd-Duplicati_Status.png)
Access Duplicati
-
If the status shows “active”, go to the following link to access the Duplicati UI Page: http://localhost:8200
-
You will taken directly to the Settings to create a new password.
![Click Settings.png 1921](https://files.readme.io/10a171a-Click_Settings.png)
- Check the password checkbox and set a new password.
![Change password.png 1917](https://files.readme.io/7565f0a-Change_password.png)
- Scroll down and click OK.
![Click OK.png 1917](https://files.readme.io/935eca0-Click_OK.png)
- You'll be logged out.
- To login, enter the new password and you will be taken to the Home page.
![Initial Login.png 1916](https://files.readme.io/cfbd2d9-Initial_Login.png)
- To open the firewall port for the Duplicati Web GUI, run the following commands:
firewall-cmd --add-port=8200/tcp --permanent
firewall-cmd --reload
Updated over 3 years ago