PSMySQLBackup is a script for backing up MySQL / MariaDB databases on Windows using mysqldump. The "PS" in PSMySQLBackup either stands for PowerShell … or Patrick's simple ….
PSMySQLBackup allows you to backup all databases or only a list of databases and to keep an arbitrary or infinite number of backups.
PSMySQLBackup was inspired by AutoMySQLBackup and its continuations, but has only a minimum amount of features.
- PowerShell x.0 (or higher)
- Copy psmysqlbackup.ps1 to arbitrary directory (for example C:\PSMySQLBackup).
- Create a directory for your backups (for example C:\Backup).
- Edit psmysqlbackup.ps1 and modify the following variables:
- Set
$configBackupDirto the path you created in step 2. - …
- Set
- Configure Windows task planner to run the script.
Author: Patrick Canterino, https://www.patrick-canterino.de/
License: 2-Clause BSD License