Giter Club home page Giter Club logo

backup-file-manager's Introduction

Backup File Manager

A managing backup server files Web Service . Allow users to backup file from multiple servers to a central storage, and manage backedup files easily via web interface and HTTP API Interface.

Architecture

Architecture

Screenshots

Screenshot 1

Screenshot 2

Screenshot 4

Screenshot 5

Screenshot 6

Use HTTP API To Upload File From Client

import requests

url = "http://127.0.0.1:8000/api/file-manager/backup-files/"

payload = {
    'upload_server': '3',
    'absolute_file_path': '/absolute-path-to-file/video-test-113.mp4',
    'filename': 'video-test-113.mp4'
}
files = [
  ('file', open('/absolute-path-to-file/video-test-113.mp4','rb'))
]
headers = {
  'Authorization': 'Token  USER_API_TOKEN',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data = payload, files = files)

print(response.text.encode('utf8'))

Or

curl --location --request POST 'http://127.0.0.1:8000/api/file-manager/backup-files/' \
--header 'Authorization: Token  USER_API_TOKEN' \
--header 'Content-Type: application/json' \
--form 'upload_server=3' \
--form 'absolute_file_path=/absolute-path-to-file/video-test-113.mp4' \
--form 'filename=video-test-113.mp4' \
--form 'file=@/absolute-path-to-file/video-test-113.mp4'

backup-file-manager's People

Contributors

haminhcong avatar

Watchers

 avatar

backup-file-manager's Issues

Init Project

Goals

  • Django-based web service
  • Store backup files from servers
  • Has a DB Models with rows:
    • Upload Server ID
    • file absolute path
    • file name hash
    • size
    • created
    • last_update
  • Deploy with UWSGI Server
  • Threaded worker
  • Has GUI to find file

Models

Upload Server:

  • Name
  • Type: Server Or Desktop User
  • IP Address

Backup File

  • Upload Server ID
  • file absolute path
  • file name hash
  • size
  • created
  • last_update
  • uploader

Views

  • Users
  • Upload Servers
  • Backup Files

Update Service Architecture

New Architecture

Architecture

Allow two upload type:

  • Upload file content Via Backup File Manager API
  • Upload file content directly to S3 Storage API, then update File Metadata and File URL to Backup File Manager API

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.