Skip to content

fix(tableau-server-linux-backup): do not proceed when tsm raises error#21

Open
samanmasarat wants to merge 2 commits intotil-jmac:masterfrom
samanmasarat:exit-on-failure-on-tsm
Open

fix(tableau-server-linux-backup): do not proceed when tsm raises error#21
samanmasarat wants to merge 2 commits intotil-jmac:masterfrom
samanmasarat:exit-on-failure-on-tsm

Conversation

@samanmasarat
Copy link
Copy Markdown

@samanmasarat samanmasarat commented Aug 22, 2023

A couple of weeks ago, we saw some errors in our backup process. By drilling down, we found out that the tsm command was not working correctly (because of issues on the server side). So, instead of returning the expected output, it returned some error logs. And on the later step (when it cleans up the old backups), it was trying to clean up the path which didn't exist (and it can be risky as well since it may delete some critical files/folders).

TLDR
If tsm command output has an error, exit and don't continue the script.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant