File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ ####note
2
+ ```
3
+ The program can help you to backup config files or sql(mysql) and svn files,it is avaliabled in linux
4
+ ```
5
+
6
+ ####py file
7
+ ```
8
+ hosts.py:it's your config file which record your server port sqluser sqlpasswd and so on
9
+ functions.py:functions to realize
10
+ main.py:call functions.py to backup
11
+ del_files.py:it will delete files from your backup server automatically
12
+ ```
13
+ ####use
14
+ ```
15
+ 1.exec "yum -y install rsync" in your src server
16
+ 2.copy py files to your dest server
17
+ 3.write your server,port,sqlinfo in hosts.py
18
+ 4.set ssh-keyon in your src and dest server
19
+ 5."python main.py" to test
20
+ 6.set crontab rule as your need
21
+ ```
22
+
23
+ ####others
24
+ ```
25
+ please edit "~/.ssh/config" in your dest server and restart sshd:
26
+ #vi ~/.ssh/config
27
+ StrictHostKeyChecking no
28
+ UserKnownHostsFile /dev/null
29
+
30
+ ```# backup
You can’t perform that action at this time.
0 commit comments