Skip to content

pre and post backup script #2861

Closed Answered by pcahyna
rudravan asked this question in Q&A
Sep 14, 2022 · 3 comments · 8 replies
Discussion options

You must be logged in to vote

I am surprised that this works at all, because bash does not like the space after =:

$ POST_BACKUP_SCRIPT= ( 'journalctl --since "1 hour ago" | grep rear > /etc/rear/status_of_backup' )
bash: syntax error near unexpected token `('

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@rudravan
Comment options

@jsmeix
Comment options

@rudravan
Comment options

@jsmeix
Comment options

@jsmeix
Comment options

Answer selected by jsmeix
Comment options

You must be logged in to vote
3 replies
@jsmeix
Comment options

@pcahyna
Comment options

@ufreier
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment