in

Linux Watcher + Duplicity

The achievement are to backup the server file every time the file update in certain folder and giving solution for the server load problem. Instead copying a lots of files every X minutes, this apps can help us to copying per file update.

yum install duplicity --enablerepo=epel
wget https://github.com/splitbrain/Watcher/archive/master.tar.gz
tar -zxvf master
mv watcher.ini /etc/
cp -p watcher.py /usr/sbin/
Edit watcher.ini

events=create,modify,move,write_close,attribute_change
command=export AWS_ACCESS_KEY_ID=EDITKEY;export AWS_SECRET_ACCESS_KEY=EDITKEY;/usr/bin/duplicity $filename --no-encryption --no-compression --no-print-statistics s3+http://BUCKETNAME

Start the watcher:

/usr/sbin/watcher.py start

Leave a Reply

Your email address will not be published. Required fields are marked *

High Anonymity Proxy menggunakan Squid

S3 backups using BACKUP-Gem