sebastianfeldmann / phpbu

PHP Backup Utility - Creates and encrypts database and file backups, syncs your backups to other servers or cloud services and assists you monitor your backup process
https://phpbu.de
Other
1.29k stars 110 forks source link

excludeCollections in mongodb #344

Closed mdjaman closed 1 year ago

mdjaman commented 1 year ago

Hello there is a little bug on excludeCollections mongodb executable dump.

image

$cmd->addOptionIfNotEmpty('--excludeCollection', $this->excludeCollections);

should be as described in documentation

image
...
if (count($this->excludeCollections)) {
    foreach ($this->excludeCollections as $col) {
        $cmd->addOption('--excludeCollection', $col, ' ');
    }
}
sebastianfeldmann commented 1 year ago

Fixed thanks to #345 by @mdjaman

mdjaman commented 1 year ago

Hello @sebastianfeldmann thanks for committing it. Would u publish to new tag (6.0.20)?

sebastianfeldmann commented 1 year ago

Done ;)

mdjaman commented 1 year ago

Sorry i missed the notification 🙏 . Great job!