Coder Social home page Coder Social logo

bakup's Introduction

bakup all the servers online.
The steps are,
1) install rysncd server at each server
2) config the bakup files by rsyncd configure
3) sync bakup files on client machine

How to add a server being bakup?
1) copy the template from  other server, such as, cp -r svr_master svr_new
2) add hostname to client machine's hosts file, such as, 209.4.5.12 new.server, it can protect svr_new's true ip
"new" is short for svr_new
3) and also, add hostname to svr_new, such as, 204.3.41.2 client.bak, client.bak is all the server's client bakup machine
4) modify the rsyncd.conf in sample, and make svr_new change its default /etc/rsyncd/rsyncd.conf to this one,
start_rsync="rsync --daemon --config=/data/bakup/svr_new/rsyncd.conf"  in /etc/init.d/rsyncd

add rsyncd module as you like, that's also the data you should bakup

5) modify rsync.sh, this script will run at client machine. 
[email protected]
DIR=(module1, module2, ...)
LOG=/logs/rsync_bak_new.log

6) add user bak_usr, run /data/bakup/adduser.sh
Then put bak_usr:yourownpass to /etc/rsyncd/rsyncd.secrets

7)start svr_new's rsyncd daemon.
 
8) add /bin/sh /data/bakup/master/data/bakup/svr_new/rsync.sh to client machine's cron.sh script.

That's all, enjoy!

If you have any questions, plz contact me([email protected])

bakup's People

Contributors

ismtlee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.