tableau-server-housekeeping icon indicating copy to clipboard operation
tableau-server-housekeeping copied to clipboard

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

Open samanmasarat opened this issue 1 year ago • 0 comments

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.

samanmasarat avatar Aug 22 '23 12:08 samanmasarat