Coder Social home page Coder Social logo

terem42 / powershell-gdrive Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 43 KB

Differential Backup and folder syncronization Powershell script for Google Drive

Batchfile 0.18% PowerShell 99.82%
powershell-script gdrive gdrive-sync backup backup-script

powershell-gdrive's Introduction

powershell-gdrive

This script can perform differential Backup and folder syncronization Powershell script for Google Drive Diffirential backup is a cumulative backup of all changes made since the last full or normal backup, i.e., the differences since the last full backup. You can have fill backup as as many as you wish differential backups.Whenever you need to restore your files to certain moment in past, combine last fullbackup with the differential backup made at desired point it time. For additional resiliency against network failures and the script supports resumable uploads and multipart uploads for small files Exponentiall backoff stragety is used in case of network failure, so the script can work unattended. The script prunes old backups with predefined time interval, hardcoded in the script within variable $Days_to_Keep_Backup. Currently it is set to 30. You may set it no any other value of your choice.

Usage

To run script, clone the repo, then download standalone command line version of 7zip utility, located here https://www.7-zip.org/download.html and place it into the script folder

Next, register the script as an application of your choice under https://console.developers.google.com Use http://localhost:8080/gdriveauthcallback for app callback. It is nesessary for getting refresh token first time app starts, users will be asked to explicitly give/deny permission for the script to acess drive files.

Download client secret for your app, save it as client_secret.json in the script folder.

Next, add folders included into backup or excluded from it into includes.txt annd excludes.txt text files. Run the bat file gdrive_backup_and_sync.bat with full agrument for full backup, or with diff option for differential from last succesfull backup made. Run bat file without parameters to see available run options.

powershell-gdrive's People

Contributors

terem42 avatar

Stargazers

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