Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

samanmasarat
Copy link

@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