Skip to content

Commit efd5265

Browse files
committed
first commit
0 parents  commit efd5265

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

0 commit comments

Comments
 (0)