The script name/parameters are not subject to shell expansion. So your
script literally tries to remove a file called *
If you want shell expansion, you have to do it as
bash -c "rm -rf /tmp/backup/*"
MK
Dnia 17 maja 2024 10:28:04 CEST, Leon Bartle <[email protected]>
napisał/a:
Calling a Backup Script in ClientBeforeJob does function correctly.
My ClientRunAfterJob has "rm -rf /tmp/backup/*" defined.
The backup console logs
JobId 415: shell command: run ClientAfterJob "rm -rf /tmp/backup/*"
But the files are not deleted.
What would be the best way to debug this?
Thanks in advance!
-- Wysłane za pomocą K-9 Mail.
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/c601c076-aa9a-4099-b7d5-4ff2fab88523%40gmail.com.