elektro-potkan/scheduler-job-backups

Scheduler - Backups Job

v1.0.0 2021-10-07 04:46 UTC

This package is auto-updated.

Last update: 2024-05-07 10:04:35 UTC


README

Scheduler job for creating and purging backups (using the elektro-potkan/backups package). This package provides the Backups job for use with the main elektro-potkan/scheduler package.

Usage

// $backupManager is an instance implementing ElektroPotkan\Backups\IManager
$job = new ElektroPotkan\Scheduler\Jobs\Backups('0 0 * * *', $backupManager);// run daily at midnight

// register the job ($scheduler is an instance implementing ElektroPotkan\Scheduler\IScheduler)
$scheduler->add($job);

Using Nette DI

scheduler:
	jobs:
		- ElektroPotkan\Scheduler\Jobs\Backups('0 0 * * *')

Author

Elektro-potkan git@elektro-potkan.cz

Info

Versioning

This project uses Semantic Versioning 2.0.0 (semver.org).

Branching

This project uses slightly modified Git-Flow Workflow and Branching Model:

License

You may use this program under the terms of either the BSD Zero Clause License or the GNU General Public License (GPL) version 3 or later.

See file LICENSE.