• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

一款多平台的免费增量备份工具:Duplicati安装教程

建站知识 Liam 1年前 (2019-04-30) 395次浏览 11个评论 扫描二维码
文章目录[隐藏]

说明:应某童鞋要求,看了下DuplicatiDuplicati是一个备份客户端,可以在本地存储,云存储服务和远程文件服务器上。备份的时候使用AES-256加密来保护您的备份,并自动压缩,支持Zip7zLZMA2压缩。而且当你备份一次后,后期只将你变化的数据添加到备份文件里,极大程度上节省了时间和空间。如果备份中途出现中断或损坏会尽可能帮你修复文件,自带Web界面,更好的进行管理,支持WinLinuxMac平台,更多介绍可以查看→传送门,这里就只说Linux下安装方法。

支持的远程服务器/云储存服务:

FTP FTP OpenStack Object Storage / Swift S3 Compatible SFTP (SSH) WebDAV Amazon Cloud Drive Amazon S3 Azure blob B2 Cloud Storage Box.com Dropbox Google Cloud Storage Google Drive HubiC Jottacloud Mega.nz Microsoft Office 365 Groups Microsoft OneDrive Microsoft OneDrive for Business Microsoft SharePoint OpenStack Simple Storage Rackspace CloudFiles Rclone Sia Decentralized Cloud 

截图

一款多平台的免费增量备份工具:Duplicati安装教程
一款多平台的免费增量备份工具:Duplicati安装教程

安装

官方网站:https://www.duplicati.com
Github地址:https://github.com/duplicati/duplicati

1、安装
Duplicati最新版本下载→传送门,日后记得将安装里的Duplicati链接替换为最新版本。

#CentOS 7系统 #安装依赖 yum install yum-utils -y 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 -y #安装Duplicati rpm -ivh https://updates.duplicati.com/beta/duplicati-2.0.3.3-2.0.3.3_beta_20180402.noarch.rpm --nodeps --force  #CentOS 6系统 #安装依赖 yum install yum-utils -y rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" yum-config-manager --add-repo http://download.mono-project.com/repo/centos6/ yum install mono-devel -y #安装Duplicati rpm -ivh https://updates.duplicati.com/beta/duplicati-2.0.3.3-2.0.3.3_beta_20180402.noarch.rpm --nodeps --force  #Debian 7+、Ubuntu 14+系统 #安装Mono apt-get update apt-get install mono-devel -y #安装Duplicati wget https://updates.duplicati.com/beta/duplicati_2.0.3.3-1_all.deb dpkg -i duplicati*.deb #如果安装报错,使用该命令修复一下就自动安装成功了 apt-get -f install -y 

2、启动

#无需密码访问 /usr/bin/mono /usr/lib/duplicati/Duplicati.Server.exe --webservice-interface=any #访问需输入密码moerats,可自定义其它密码,修改最后面参数即可 /usr/bin/mono /usr/lib/duplicati/Duplicati.Server.exe --webservice-interface=any --webservice-password=moerats

然后就可以通过IP:8200访问程序了,对于CentOS系统,还需要开启8200端口,开启如下:

#CentOS 6 iptables -I INPUT -p tcp --dport 8200 -j ACCEPT service iptables save service iptables restart  #CentOS 7 firewall-cmd --zone=public --add-port=8200/tcp --permanent firewall-cmd --reload 

开机自启

最后我们还可以设置下进程守护和开机自启来提高使用效率。这里保证所有系统都能设置到,就说2种方法,SystemctlSupervisor。貌似CentOS 6Debian 7Ubuntu 14不支持Systemctl,建议使用Supervisor

1、使用Systemctl
新增systemd配置文件,使用命令:

#以下为一整条命令,先自定义ExecStart后面的密码moerats,再一起复制到SSH运行 echo "[Unit] Description=Duplicati Process Guardian [Service] ExecStart=/usr/bin/mono /usr/lib/duplicati/Duplicati.Server.exe --webservice-interface=any --webservice-password=moerats Restart=on-failure RestartSec=15 [Install] WantedBy=multi-user.target" > /etc/systemd/system/duplicati.service 

设置开机自启:

systemctl enable duplicati 

启动Duplicati

systemctl start duplicati 

2、使用Supervisor
为了方便,这里采用pip方式安装supervisor

安装pip

#CentOS 6.x 32位 rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm yum install -y python-pip  #CentOS 6.x 64位 rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum install -y python-pip  #CentOS 7.x yum install -y epel-release yum install -y python-pip #如果CentOS 7安装出现No package python-pip available,可以用以下命令进行安装 wget https://bootstrap.pypa.io/get-pip.py python get-pip.py  #Debian/Ubuntu系统 apt-get -y update apt-get -y install python-pip 

安装Supervisor

pip install supervisor wget -N -P /etc/ --no-check-certificate  https://coding.net/u/cvc/p/supervisor/git/raw/master/supervisord.conf 

新增配置代码:

#以下为一整条命令,先自定义command后面的密码moerats,再一起复制到SSH运行 echo "[program:duplicati] user=root command=/usr/bin/mono /usr/lib/duplicati/Duplicati.Server.exe --webservice-interface=any --webservice-password=moerats autorstart=true autorestart=true startsecs=15" >> /etc/supervisord.conf 

加入开机自启:

echo "/usr/bin/supervisord -c /etc/supervisord.conf" >> /etc/rc.local chmod +x /etc/rc.local

注意下该设置开机自启的方法对CentOS 7Debian 9Ubuntu 17+系统可能会没有作用,为啥就不说了,直接选Systemctl方案就行了。

关于使用的话,直接看官方文档吧,这里就不研究了。


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:一款多平台的免费增量备份工具:Duplicati安装教程
喜欢 (3)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(11)个小伙伴在吐槽
  1. Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but instead of that, this is fantastic blog. A great read. I'll definitely be back.
    web hosting providers2020-09-05 17:49 回复 Mac OS X | Chrome 65.0.3325.181
  2. I loved as much as you'll receive carried out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get bought an nervousness over that you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield this increase.
    web hosting service2020-08-31 21:56 回复 Mac OS X | Chrome 51.0.2704.84
  3. I simply could not leave your web site prior to suggesting that I extremely enjoyed the standard info a person provide in your guests? Is gonna be again regularly to investigate cross-check new posts
    black mass2020-08-31 12:42 回复 Linux | Firefox浏览器 56.0.4
  4. Simply wish to say your article is as astonishing. The clearness in your post is simply nice and i can assume you are an expert on this subject. Well with your permission allow me to grab your feed to keep updated with forthcoming post. Thanks a million and please keep up the gratifying work.
    black mass2020-08-28 15:00 回复 Mac OS X | Chrome 64.0.3282.186
  5. Hi, just wanted to mention, I enjoyed this blog post. It was helpful. Keep on posting!
    cheap flights2020-08-27 17:59 回复 Linux | Chrome 66.0.3359.170
  6. Paragraph writing is also a excitement, if you be familiar with after that you can write if not it is complex to write.
    cheap flights2020-08-27 17:04 回复 Mac OS X | Chrome 56.0.2986.42
  7. Hi, after reading this amazing piece of writing i am also happy to share my know-how here with friends. cheap flights 2CSYEon
    cheap flights2020-08-27 08:39 回复 Linux | Firefox浏览器 52.9
  8. I really like it when folks get together and share thoughts. Great blog, keep it up! cheap flights 3gqLYTc
    cheap flights2020-08-25 06:36 回复 Linux | Firefox浏览器 52.9
  9. Excellent site you have here but I was curious about if you knew of any community forums that cover the same topics discussed in this article? I'd really like to be a part of community where I can get opinions from other experienced individuals that share the same interest. If you have any recommendations, please let me know. Kudos! adreamoftrains hosting services
    adreamoftrains web hosting reviews2020-08-12 11:53 回复 Linux | Chrome 61.0.3163.128
  10. This is very fascinating, You are a very professional blogger. I have joined your rss feed and sit up for seeking more of your wonderful post. Also, I have shared your website in my social networks
    best web hosting 20202020-08-12 00:07 回复 Linux | Firefox浏览器 60.0.1
  11. Having read this I believed it was really enlightening. I appreciate you spending some time and effort to put this information together. I once again find myself spending way too much time both reading and posting comments. But so what, it was still worthwhile!
    website hosting companies2020-08-11 16:25 回复 Linux | Chrome 67.0.3396.62