Coder Social home page Coder Social logo

backupftp's Introduction

backupFTP

这里是我的修改版本,NoConfigFile.py文件可以单独使用,可以根据当前日期备份文件。 具体内容看源码最后几行就行。


下面是原作者的README, FTP的备份工具,python3写的。由于多备份停止了免费额度,只好自己写个工具来进行备份。在linux下配合corn服务可进行定时备份。 #使用环境 支持python3的环境 #配置文件 新建config.ini配置文件配置文件格式如下:

[ftp]
# ftp登录的地址
address = your_ftp_address
# 登录用户名
name = your_user_name
# 登录密码
password = your_password
# 登录端口,默认21
port = 21
# 需要下载的绝对路径
remote_dir = /wwwroot/adds/
# 需要下载到本地的路径,如果使用相对路径,请用./开头,如果是绝对路径,请以/开头。默认是./back/此项非必需,可直接去掉
local_dir = 

#运行

python3 entry.py //这时会读默认的配置文件(config.ini)
or
python3 entry.py config-1.ini

则自动将远程的目录下载到当前文件夹下 #TODO List 增加数据库备份功能 增加增量备份功能 增加备份到百度云等云端存储的功能 增加邮件通知功能

backupftp's People

Contributors

jacquesvonhamsterviel 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.