Masasamjant.FileSystems.Backups
2.1.0
dotnet add package Masasamjant.FileSystems.Backups --version 2.1.0
NuGet\Install-Package Masasamjant.FileSystems.Backups -Version 2.1.0
<PackageReference Include="Masasamjant.FileSystems.Backups" Version="2.1.0" />
<PackageVersion Include="Masasamjant.FileSystems.Backups" Version="2.1.0" />
<PackageReference Include="Masasamjant.FileSystems.Backups" />
paket add Masasamjant.FileSystems.Backups --version 2.1.0
#r "nuget: Masasamjant.FileSystems.Backups, 2.1.0"
#:package Masasamjant.FileSystems.Backups@2.1.0
#addin nuget:?package=Masasamjant.FileSystems.Backups&version=2.1.0
#tool nuget:?package=Masasamjant.FileSystems.Backups&version=2.1.0
Masasamjant File Systems Backups
Class library to create backups from directories. Classes in this class library can be used to perform directory backups. There is implementation for 4 different backups:
- Full backup of selected source folder. Implemented in FullBackupTask class.
- Differential backup of selected source folder. This means that it will create backup from all created or modified files since latest full backup. Implemented in DifferentialBackupTask class.
- Incremental backup of selected source folder. This means that it will create backup from all created or modified files since latest incremental backup. Implemented in IncrementalBackupTask class.
- Continuous backup of selected source folder. This means that full backup is created from source, but compared to full backup this use single destination folder and overwrites previous backup. Implemented in ContinuousBackupTask class. This optimizes the disk space usage, but backup history is lost.
All backup tasks support backing up selected source folder and, optionally, sub folders. How backup is performed are defined with BackupProperties class.
Following code demonstrates the most simple usage:
var sourceDirectoryPath = @"D:\My\Files";
var destinationDirectoryPath = @"M:\Backups";
bool includeSubDirectories = true;
var properties = new BackupProperties("Demo", BackupMode.Full, sourceDirectoryPath, destinationDirectoryPath, includeSubDirectories);
var backupTask = new FullBackupTask(properties, new Masasamjant.FileSystems.FileSystem());
var backupTaskResult = backupTask.Run();
To see full application using this class library please check the github repository at https://github.com/masasamjant/FileSystems
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Masasamjant.FileSystems (>= 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.