Code Monkey home page Code Monkey logo

mindfavbackuptools's Introduction

MindfavBackupTools

English/Deutsch This documentation is written in 2 languages: german and english. Diese Dokumentation ist in zwei Sprachen geschrieben: Deutsch und Englisch.

Deutschsprachige Dokumentation - Documentation in German

Eine Reihe von Tools zum Arbeiten mit Backups. Im ersten Schritt werde ich Kommandos zum Rotieren von Backups schreiben. Die Anwendung wir din C# mit Visual Studio 2022 unter .NET 6 geschrieben.

Befehle

set

Dieser Befehl aktualisiert eine Einstellung in applicationConfiguration.json. Verfügbare Einstellungen:

  • RotationFoldersDateCultureInfo
    Speichert das Format, in dem das Program Datumsangaben erwartet (en-US für YYYY-mm-dd; de-DE für dd.MM.YYYY).

rotate

Dieser Befehl rotiert Backups. Rotation bedeutet hier, dass ältere Backups gelöscht werden. Es gibt viele verschiedene Ansätze zum Rotieren von Backups. Für tiefere Einblicke, empfehle ich diesen Wikipedia Artikel als Einstiegspunkt ins Thema: https://en.wikipedia.org/wiki/Backup_rotation_scheme

Dieses Tool arbeitet nach dem folgenden Schema:

  1. Behalte immer die drei aktuellsten Backups. Ältere Backups werden entfernt.

  2. Behalte immer das letzte Backup einer Woche - und das über die letzten 4 Wochen hinweg. Es gibt also immer Backups 4 Wochen in der Zeit zurück.

  3. Behalte immer das letzte Backup des letzten Monats. Das Tool behält also Backups über eine längere Zeit, eines für jeden Monat.

Dieser Ansatz kann dazu führen, dass gerade bei großen Backup-Dateien über längere Zeit viel Speicherplatz verbraucht wird.

Programmablaufplan unseres Backup-Rotation Schemas

Documentation in english, Englischsprachige Dokumentation

A set of tools for working with backups. In a first step, I will add a command to rotate backups. Application written in C# within Visual Studio 2022, using .NET 6.

Commands

set

This command updates a setting in applicationConfiguration.json. Available settings:

  • RotationFoldersDateCultureInfo
    Sets the format, the program expects dates in (en-US for YYYY-mm-dd; de-DE for dd.MM.YYYY).

rotate

This command will rotate backups. Rotation here means, it will delete old backups. There are many different ideas about backup rotation. For a deeper dig, I suggest this wikipedia entry as a starting point: https://en.wikipedia.org/wiki/Backup_rotation_scheme

I took a decision for the following scheme:

  1. Keep 3 most up-to-date backups Remove older backups

  2. Keep last backup of last week for a whole month. So there are backups for the last 4 weeks.

  3. Always keep the last backup of a month. So this tool does keep backups over a longer time, one for every month.

This approach can fill disks. So be careful about it.

Flowchart for backup rotatino schema

mindfavbackuptools's People

Contributors

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