Coder Social home page Coder Social logo

backup-server's Introduction

Table of contents

  1. Backup server
    1. Config.py
  2. File manager
    1. Example
    2. Running
  3. Dependencies

backup-server

config.py

Create a config.py to hold your server configurations.

AUTHORIZED_ACCOUNTS is used to limitate what accounts can use this server CLIENT_ID application id registered on google. CLIENT_SECRET application secret registered for this application REDIRECT_URI application redirect uri registered on google UPLOAD_FOLDER local folder name to save documents.

Your config.py should look like this.

AUTHORIZED_ACCOUNTS = ["[email protected]", "[email protected]"]
CLIENT_ID = 'client-id'
CLIENT_SECRET = 'client-secret'
REDIRECT_URI = 'redirect-uri'
UPLOAD_FOLDER = '/home/{usr}/backup'

file-manager

Move/organize all media files on classified subfolders year/month/day. Metadata is used to find all date information to create those folders.

Example

If we use /my-folder/pictures all data will be moved to /my-folder/pictures/yyyy/mm/dd.

Running

python3 file-manager.py /mnt/c/Users/myUser/Pictures

Dependencies

sudo apt-get update
sudo apt-get install python3-pip

It might be necessary to add this repository

sudo add-apt-repository universe

exifread

pip install exifread

ffprobe

sudo apt-get install ffmpeg

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.