Skip to content
/ backup Public

a simple py script to backup your files and sql to remote server

Notifications You must be signed in to change notification settings

tm2018/backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

####note

The program can help you to backup config files or sql(mysql) and svn files,it is avaliabled in linux

####py file

hosts.py:it's your config file which record your server port sqluser sqlpasswd and so on
functions.py:functions to realize
main.py:call functions.py to backup
del_files.py:it will delete files from your backup server automatically

####use

1.exec "yum -y install rsync" in your src server
2.copy py files to your dest server
3.write your server,port,sqlinfo in hosts.py
4.set ssh-keyon in your src and dest server
5."python main.py" to test
6.set crontab rule as your need 

####others

please edit "~/.ssh/config" in your dest server and restart sshd:
#vi ~/.ssh/config
StrictHostKeyChecking no
UserKnownHostsFile /dev/null

```# backup

About

a simple py script to backup your files and sql to remote server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages