Coder Social home page Coder Social logo

photo-backup's Introduction

Photo backup

Script creating backups of photos. Script create check sum of month's photo. If sum is changed create tar acrhive. After that create zip archive with password. Photo means file with following extension: BMP, bmp, JPG, JPEG, Jpg, jpg, NEF, nef, PNG, png, TIF and tif

Structure of photos directory shoud be:

  • First dir level is year - year in format YYYY
  • Sub dir in year is mounth - month in year in format YYYY.MM.DD SOME TEXT

Installation

Script uses ant and zip.

  • Install Apache Ant:
$ sudo apt-get install ant
  • Install zip:
$ sudo apt-get install zip
  • Clone script:
$ git clone [email protected]:banadiga/photo-backup.git

Configuration

Change backup.properties file.

  • src.dir - path to folder with photos directory.
  • zip.password - password of zip file.
  • split.size - split zip file size.
  • years - list of years.
  • date.separator - separator betwine year and mounth.
  • target.tar.dir - target directory for tars file.
  • target.zip.dir - target directory for zips file.
  • target.sum.dir - target directory for sums file.

Run

  • Run as ant script
$ cd ./photo-backup
$ ./ant
  • Run as shell script
$ cd ./photo-backup
$ ./run

photo-backup's People

Contributors

banadiga avatar ibanadiga avatar iverhun avatar

Stargazers

 avatar

Watchers

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