GithubHelp home page GithubHelp logo

pa-0 / ps-backup-folders Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmichaelis/ps-backup-folders

0.0 0.0 0.0 43 KB

Powershell script to synchronize folders, for example to perform a backup to NAS.

License: Apache License 2.0

PowerShell 100.00%

ps-backup-folders's Introduction

Apache License PowerShell 5 Build status

ps-backup-folders

PowerShell script to backup folders, for example to perform a backup to NAS.

Usage

The following is a short example usage. For more help call Get-Help Backup-Folders.

Syntax

PS C:\> Backup-Folders [[-PropertiesFile] <String>]

Description

This script creates backups of folders based on ROBOCOPY. It is configured through a JSON file which mght list several folders to backup/mirror.

The script is especially meant to have an easy way to do backups for example to a NAS or an external drive.

The default JSON file to read is ~/Backup-Folders.json which might look like this:

{
  "items": [
    {
      "from": "C:/FromSimple",
      "to": "C:/ToSimple",
    },
    {
      "from": {
        "path": "F:/rom",
        "removable": false
      },
      "to": {
        "path": "T:/owards",
        "removable": true
      }
    },
    {
      "from": "C:/FromLocal",
      "to": "//Fritz-nas/fritz.nas/Elements/ToNAS",
      "options": [
        "/MIR",
        "/R:5",
        "/W:15",
        "/FFT"
      ]
    }
  ],
  "afterAll": "shutdown"
}

This performs backups, either just between local files, or to a removable device and to a NAS drive with extra options for ROBOCOPY. The computer will be shutdown eventually after backup.

Development

  • This module has been developed with Powershell ISE.

  • It uses Pester for testing.

    Tests won't run with pre-installed Windows 10 Pester. Instead follow the installation instructions for an updated version of Pester.

See Also

ps-backup-folders's People

Contributors

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