This is more or less split from:
My Use Case
I have a CentOS VM that mounts my entire NAS over NFS (read-only) so that it can back it up to various places in various ways. I’m using Duplicati for encrypted, incremental backups to Google Drive. When I set it up, I found the documentation for a headless CentOS install was kind of scattered. As a result, I figured it might be useful to consolidate it here.
This should work on a vanilla CentOS install (run as root or use sudo).
yum install yum-utils rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" yum-config-manager --add-repo http://download.mono-project.com/repo/centos7/ yum install mono-devel yum install epel-release yum install libappindicator curl -O https://updates.duplicati.com/beta/duplicati-126.96.36.199-188.8.131.52_beta_20180402.noarch.rpm #get updated link from https://www.duplicati.com/download yum install duplicati* firewall-cmd --add-port=8200/tcp --permanent firewall-cmd --reload echo "[Unit] Description=Duplicati Backup software [Service] ExecStart=/usr/bin/mono /usr/lib/duplicati/Duplicati.Server.exe --webservice-interface=any Restart=on-failure RestartSec=30 [Install] WantedBy=multi-user.target" > /etc/systemd/system/duplicati.service systemctl enable duplicati systemctl start duplicati
I didn’t run into any conflicts with SELinux, but as always, it could rear it’s ugly head if you’re backup up from somewhere it thinks should be protected.
I hope someone finds this useful! Any suggestions for additions/revisions are welcome.
Special thanks to @Ruffalo for turning me on to Duplicati.