mxgross / EasyBackupBundle

Kimai 2 Plugin for easier backups
MIT License
24 stars 6 forks source link

add your invoices directory to backup #18

Closed aptevo closed 4 years ago

aptevo commented 4 years ago

Add your invoices directory to $arrayOfPathsToBackup in Controller/EasyBackupController.php to have them backed up automatically.

mxgross commented 4 years ago

Which path did you mean exactly, the template/invoice path is already added in the latest version: https://github.com/mxgross/EasyBackupBundle/blob/d6a61132f31eb1e914f02b576c8505bf5aa3b161/Controller/EasyBackupController.php#L148

kevinpapst commented 4 years ago

Maybe var/invoices/ - see https://www.kimai.org/documentation/invoices.html#create-your-own-invoice-document

You could even use the %kimai.invoice.documents% parameter and inject all configured search paths for invoice templates.

mxgross commented 4 years ago

I added the path but I will leave this issue open and implement the usage of the %kimai.invoice.documents% parameter soon.