Skip to content

Powershell-based script for automatic backups on Windows

Notifications You must be signed in to change notification settings

sradi/robobackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

robobackup

Powershell script for automatic background file backups on Windows.

This script can be configured to mirror a list of directories to backup destinations. The script starts a robocopy process for each directory, that should be synced. Each robocopy process keeps running in background and syncs changes from the source directory to the destination every 30 minutes.

Configuration

  • Create a CSV file
  • add a row with the titles Name,Source,Target,ExcludedFiles,ExcludedDirectories
  • add a row for each directory, you would like to backup
  • call .\robobackup.ps1
  • Without parameter: %USERPROFILE%.robobackup-jobs.csv will be used.
  • With parameter -BackupJobsConfigFile <>: The provided csv file will be used

... robocopy /FFT: Dann werden Dateien nicht ständig fehlerhaft als "geändert" erkannt ... CSV: Pfade/Exclusions mit Whitespaces: """with whitespace"" withoutwhitespace" ...damit dieses Skript Netzlaufwerke sehen kann, muss in der Registry... ...wenn dieses Skript nicht ausgeführt werden kann, liegt es möglicherweise der restriktiven Default-Konfiguration unter Windows. Folgendes Kommando ausführen: Set-ExecutionPolicy RemoteSigned

Todo

  • Parametriesierbar, ob "mirror" /MIR oder "extend" /E backup
  • Prozess-Status (exitcode) nach Job-Start und in regelmäßigen Intervallen prüfen und ggf. Warnung ausgeben
  • Rolliere Logfiles nach Robobackup-Neustart
  • Unterbreche backup (wöchentlich?), liste Dateien auf, die nur im Ziel existieren, verschiebe sie in einen "Papierkorb"-Verzeichnis starte backup wieder.

About

Powershell-based script for automatic backups on Windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published