Code Monkey home page Code Monkey logo

ftpbackup's Introduction

FTP 자동 백업

Concept

ftpautoupload.c

main의 file_path 에 명시된 디렉토리의 하위 경로에 수정시간이 변화하면(파일이 변경되면) file_path에 해당하는 디렉토리를 tar로 묶은 뒤 ftp서버로 전송.
파일 수정시간을 string으로 변환후 hash함수를 이용해 모든 파일의 수정시간을 XOR 연산하여 변화가 발생하면, 파일이 변경된 것으로 확인.

ftpautoversion.c

ftp 디렉토리에 autoupload로 받은 tar 파일을 지속적으로 검사하고 해당 파일이 생성되면 현재 시간에 해당하는 디렉토리를 생성하여 위치를 옮기고 log를 남김.

ftp13.txt

autoupload 시 ftp 접속 후 자동으로 ftp 내부 명령을 실행 리스트를 저장. ftp -s:ftp13.txt 로 접속하면 해당 파일에 저장된 명령 리스트를 순차적으로 실행한다.

ftpbackup's People

Contributors

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