CentOS 7 安装Duplicati 云备份工具

/ 0评 / 0

Duplicati是一个跨平台的云存储的同步备份软件, 他支持Amazon S3, OneDrive, Google Drive, Rackspace Cloud Files, HubiC, Backblaze (B2), Amazon Cloud Drive (AmzCD), Swift / OpenStack, WebDAV, SSH (SFTP), FTP, 等等.

iyn8PS.md.png

https://github.com/duplicati/duplicati
https://www.duplicati.com/

CentOS 7:

yum <span class="hljs-keyword">install</span> yum-utils
rpm <span class="hljs-comment">--import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"</span>
yum-config-manager <span class="hljs-comment">--add-repo http://download.mono-project.com/repo/centos7/</span>
yum <span class="hljs-keyword">install</span> mono-devel

下载最新Duplicati

wget <span class="hljs-symbol">https:</span>/<span class="hljs-regexp">/github.com/duplicati</span><span class="hljs-regexp">/duplicati/releases</span><span class="hljs-regexp">/download/v</span>2.<span class="hljs-number">0</span>.<span class="hljs-number">3.12</span>-<span class="hljs-number">2.0</span>.<span class="hljs-number">3.12_</span>canary_2018-<span class="hljs-number">10</span>-<span class="hljs-number">23</span>/duplicati-<span class="hljs-number">2.0</span>.<span class="hljs-number">3.12</span>-<span class="hljs-number">2.0</span>.<span class="hljs-number">3.12_</span>canary_20181023.noarch.rpm

安装

yum <span class="hljs-keyword">install</span> duplicati*

把防火墙8200端口打开

<span class="hljs-comment">#firewall-cmd --add-port=8200/tcp --permanent</span>
<span class="hljs-comment">#firewall-cmd --reload</span>

echo "[Unit]
Description=Duplicati <span class="hljs-keyword">Backup</span> software
[Service]
ExecStart=/usr/<span class="hljs-keyword">bin</span>/mono /usr/lib/duplicati/Duplicati.Server.exe <span class="hljs-comment">--webservice-interface=any</span>
Restart=<span class="hljs-keyword">on</span>-<span class="hljs-keyword">failure</span>
RestartSec=<span class="hljs-number">30</span>
[<span class="hljs-keyword">Install</span>]
WantedBy=multi-user.target<span class="hljs-string">" > /etc/systemd/system/duplicati.service</span>

再启动

systemctl enable duplicati
systemctl <span class="hljs-keyword">start</span> duplicati

启动后输入http://你的ip地址:8200访问, 一定要是ip地址, 不能是域名.

教程参考
https://duplicati.readthedocs.io/en/latest/02-installation/
https://forum.level1techs.com/t/headless-duplicati-on-centos-guide/128799
https://github.com/duplicati/duplicati/releases

发表评论