Total Pageviews

Friday 19 August 2016

Duplicati is a free, open source, backup client


Store securely encrypted backups on cloud storage services!
Build Status Issue Stats Issue Stats
Duplicati is a free, open source, backup client that securely stores encrypted, incremental, compressed backups on cloud storage services and remote file servers. It works with:
  • Amazon S3
  • OneDrive
  • Google Drive (Google Docs)
  • Rackspace Cloud Files
  • HubiC
  • Backblaze (B2)
  • Amazon Cloud Drive (AmzCD)
  • Swift / OpenStack
  • WebDAV
  • SSH (SFTP)
  • FTP
  • and more
Duplicati is licensed under LGPL and available for Windows, OSX and Linux (.NET 4.5+ or Mono required). 

Download

The latest version of Duplicati is an experimental version for the Duplicati 2.0 release. 
The preview release will automatically notify you and allows you to upgrade with a single click (or command in the terminal).
All releases are GPG signed with the public key 3DAC703D. The latest signature file and latest ASCII signature file are also available.
For even more bleeding edge access, check the latest releases or choose another update channel in the UI or on the commandline.

Features

  • Duplicati uses AES-256 encryption (or GNU Privacy Guard) to secure all data before it is uploaded.
  • Duplicati uploads a full backup initially and stores smaller, incremental updates afterwards to save bandwidth and storage space.
  • A scheduler keeps backups up-to-date automatically.
  • Integrated updater notifies you when a new release is out
  • Encrypted backup files are transferred to targets like FTP, Cloudfiles, WebDAV, SSH (SFTP), Amazon S3 and others.
  • Duplicati allows backups of folders, document types like e.g. documents or images, or custom filter rules. 
  • Duplicati is available as application with an easy-to-use user interface and as command line tool.
  • Duplicati can make proper backups of opened or locked files using the Volume Snapshot Service (VSS) under Windows or the Logical Volume Manager (LVM) under Linux. This allows Duplicati to back up the Microsoft Outlook PST file while Outlook is running.
  • Filters, deletion rules, transfer and bandwidth options, etc

Why use Duplicati?

Keep your data safe, store it far away, update your backup regularly! This is a simple rule but many backup solutions do not achieve that today. But Duplicati does!
Keep your data safe! Bad guys on the Internet seem to look for interesting data everywhere. But people do not want to see any of their private data revealed anywhere. Duplicati provides strong encryption to make sure that your data looks like garbage to others. With a well chosen password your backup files will be more safe on a public webserver than your unencrypted files at home.
Store your backup far away! The best backup is useless when it is destroyed together with it's original data. Just assume that a fire destroys your office - would your backup survive? Duplicati stores backups on various remote file servers and it supports incremental backups so that only changed parts need to be transfered. This makes it easy to use a destination far away from the original data.
Backup regularly! The worst case is that your backup is outdated simply because someone forgot to make a backup at the right time. Duplicati has a built-in scheduler, so that it's easy to have a regular, up-to-date backup. Furthermore, Duplicati uses file compression and is able to store incremental backups to save storage space and bandwidth.

from  https://github.com/duplicati/duplicati
(https://briteming.blogspot.com/2013/09/duplicati.html)
-------

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


Duplicati是一个备份客户端,可以在本地存储,云存储服务和远程文件服务器上。备份的时候使用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

安装

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方案就行了。
关于使用的话,直接看官方文档吧.