GithubHelp home page GithubHelp logo

ms-luf / poor.backup.system Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 19 KB

blazing stupid backup solution for Windows & Linux

PowerShell 100.00%
powershell powershell-module powershell-core powershell-gallery powershell-cmdlets backup-script backup-files backup-tool

poor.backup.system's Introduction

image

Poor.Backup.System

A blazing stupid backup solution for Windows & Linux - based on a simple PowerShell Module working with Powershell Core on both Linux and Windows platform (should work also on Mac but not tested currently).

This project was just a demo to play with Powershell Core on both Linux and Windows to study differences & bugs.

At the end, this is the release. It's a very simple stuff I have built to be able to save easily file during some tests phase on non-industrialized environments.

(c) 2019 lucas-cueff.com Distributed under Artistic Licence 2.0 (https://opensource.org/licenses/artistic-license-2.0).

Description

This release (I am not sure it will be another one, but don't hesitate to ask if you want some new features...) can be used to build a backup list and easily add/remove item to this list from a Powershell command line and then start a backup of this list... Your backup is availabe as zip or classic folder with log files.

Exported Functions and Alias

Functions

  • Start-PoorBackup
  • Set-PoorBackupSettings
  • Add-ItemToPoorBackup
  • Remove-ItemFromPoorBackup
  • Import-PoorBackupSettings
  • Write-PoorBackupLog

install Poor.Backup.System from PowerShell Gallery repository

You can easily install it from powershell gallery repository https://www.powershellgallery.com/packages/Poor.Backup.System/ using a simple powershell command and an internet access :-)

	Install-Module -Name Poor.Backup.System

import module from PowerShell

	C:\PS> import-module Poor.Backup.System.psd1

module content

documentation in markdown available here : https://github.com/MS-LUF/Poor.Backup.System/tree/master/docs

Play with it - Linux sample

Create your main config file

create my main config file in default location ($home/.PoorBackup/settings.xml) to backup "/var/www","/etc/nginx","/etc/stuff" in /home/you as an archive and log it in /var/log

	PS> Set-PoorBackupSettings -LogDir /var/log -TargetBackupDir /home/you -ItemsToBackup @("/var/www","/etc/nginx","/etc/stuff") -CompressBackup

Load one of my conf file before running a backup

Load mybackupstuff.xml from /tmp

	PS> Import-PoorBackupSettings -SettingsFile /tmp/mybackupstuff.xml

Add a new item to my backup list

Add "/test/important" to my backup list

	PS> get-item "/test/important" | Add-ItemToPoorBackup

Remove an existing item from my backup list

Remove "/test/notimportant" from my backup list

	Remove-ItemFromPoorBackup -BackupItem "/test/notimportant"

Start a backup session

	PS> Start-PoorBackup

poor.backup.system's People

Contributors

ms-luf avatar

Stargazers

 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.