Git Product home page Git Product logo

oldabl / sync-disk-to-cloud Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 40.24 MB

Sync contents of a directory to any other directory, as efficiently as possible. This was particularly made to create a "live" backup of photographs and their metadata files to network disks like pCloud, Adobe Cloud, OneDrive or Google Drive.

License: MIT License

Shell 43.86% Python 56.14%
photography backup pcloud drive raw files rsync metadata

sync-disk-to-cloud's Introduction

These scripts allow to sync or create backups

Make sure that the disk you're copying onto has enough space, or that your internet upload speed is fast enough for uploading as the program copies.

Live sync

Originally made to sync a directory between an external volume (Elements1TB) to an online disk (in this default case pCloud), its bandwith is limited to make sure pCloud has time to upload files while they are being copied into it.

Prerequisites

Need to have rsync installed.

Parameters

The parameters are set directly inside the script:

  • dirToSync: source directory to synchronise
  • whereToSync: destination directory where to synchronise the source directory

Details

It replicates exactly the dirToSync directory, meaning:

  • the first run can take hours because it needs to copy the whole directory
  • subsequent runs will only do what's needed to make sure the destination directory is up-to-date with the source
  • if a file is deleted in the source directory, the script will delete it in the destination directory
  • if a file is updated in the source directory, the script will copy the newly updated file into the destination directory
  • if a file is updated in the destination directory, the script won't replace it with the file in the source directory

Create backup

It creates a snapshot of a directory and stores it in another directory.

Prerequisites

Need to have zip installed.

Parameters

The parameters are set directly inside the script:

  • dirToBackup: source directory to archive as backup
  • whereToStoreBackup: destination directory where to store the backup archive

Details

It creates a zip archive of the dirToBackup directory and stores it in the whereToStoreBackup directory.

sync-disk-to-cloud's People

Contributors

oldabl avatar

Stargazers

 avatar

Watchers

 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.