<< Back

8 March, 2018
| Jonathan MacDonald
Tableau Server housekeeping made easy – Linux Edition
A few years ago, I write a blog about automating the processes involved in keeping a Tableau Server well maintained and backed up. This blog included a link to a Windows batch script that backed up the server, archived log files, and ran a cleanup task, as well as deleting old backups and log archives to avoid filling up all your storage.
With the introduction of Tableau Server on the Linux operating system, I have re-written this script in bash. You can find the script on my github page. I have included instructions in the scripts themselves, so it should all be fairly self-explanatory, but hit me up on twitter if you have any feedback or questions, or if you just want to say hi.
Enjoy!
4 thoughts on “Tableau Server housekeeping made easy – Linux Edition”
Leave a Reply
9 August, 2022
‘Why should you apply early to The Data School New York?’
9 August, 2022
Relationships in Tableau: Direct and Indirect connections
4 August, 2022
Using Templates in Tableau – Sankeys Made Easy
26 July, 2022
How To Authenticate To Alteryx Server V3 APIs
4 July, 2022
Do Good With Data: 5 Questions with Viz For Social Good’s Nisa Marques
4 July, 2022
Tableau 2022.2 Overview of our Top New Features
4 July, 2022
No resume? No problem! How potential-based applications have revolutionised the way my company hires talent.
21 June, 2022
Dynamic YoY Comparison Flag for Financial Years using Alteryx
27 May, 2022
Inspire 2022 Recap
27 May, 2022
I think there is a small mistake in the script:
backup_name=……..
tsm maintenance backup -f $backupname -d …….
Thanks
Also i would suggest to add an error checking when doing the ziplogs or backup in the script because we’ve lost 4 months of data and logs because the backup didn’t work anymore after october 2018 and we didn’t know. We ended up having no logs and no backup since then so Support couldn’t help me fixing. We had to uninstall and install tableau with the October data.
After tsm maintenance ziplogs and backup commands i have added:
if [ $? -eq 0 ] ; then
echo “Success”
else
echo “Tableau Server Backup FAILED!” | mail -s “TABLEAU Backup failed!” anyemail@blablabla.com
exit 1
fi
So now we should know if the backup has any error and we can check then.
Hi Jonathan –
I was interested in taking a look at the Linux scripts mentioned in your article. Unfortunately, when I select the link to your github page it returns a 404 error code. Do you have another location where I can download the scripts?
Thanks,
Mark
Thanks for pointing out the broken link Mark! I’ve updated it now so the link should take you to the right place. Just to be sure, here is the url:
https://github.com/til-jmac/tableau-server-housekeeping/tree/master/linux