system-helpers/usr/share/doc/restic/mybackup-create.sh

12 lines
283 B
Bash
Raw Normal View History

2022-06-04 23:09:23 +00:00
#!/usr/bin/env bash
# pre action or use ExecStartPre
2022-06-04 23:09:23 +00:00
/usr/bin/restic backup \
"${RESTIC_ADDITIONAL_CREATE_PARAMS}" \
--exclude-file "${RESTIC_FILE_EXCLUDE}" \
--files-from "${RESTIC_FILE_INCLUDE}"
/usr/bin/restic forget "${RESTIC_KEEP}"
# post action or adapt ExecStartPost