-
Hahn Axel (hahn) authoredHahn Axel (hahn) authored
60_File_env.md 639 B
If a file env
exists in the folder ./jobs/
it will be sourced by the backup scripts.
Here you can set custom environment variables.
A common usage is extending the variable PATH to execute binaries that are not located in any directory.
WIP: Or you can override used parameters during backup. The parameters for mysqldump are in env_defaults. If you want to change them then put LD_MYSQL_DUMP_PARAMS=...
into env file.
Example:
This might be helpful on MS Windows. If you put the restic binary "somewhere" eg. c:\portable\restic\restic.exe then you can add the path to the env file:
PATH=/c/portable/restic/:$PATH