GithubHelp home page GithubHelp logo

tableau-server-housekeeping's People

Contributors

andrearota avatar bradfair avatar dylanwijman avatar geanttechnology avatar mschweyen avatar msgongora avatar sergiustheblack avatar sivivatu avatar til-jmac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tableau-server-housekeeping's Issues

Suggestion ..

Hi. Great job. Thanks.
I implemented it for my Tableau Server maintenance routine.

Suggestion: Cleanup section in the beginning of the script. Tableau recommends to clean up logs and temporary files before backing up to keep data files size smaller. Backup runs faster.

There are some minor errors I have corrected in my version:
1 - In the tsm maintenance backup command, the $backupname should be $backup_name.
2 - There is missing "echo" word command in the else statements when "found, deleting..." (both else statements).

Thanks for sharing.

zip format to .json format

We need to change the log-archives script zip format to .json format Can you please help on it

cd../../../../../../..
cd C:\Windows\System32\cmd.exe
cd ../..
cd C:\ProgramData\Tableau\Tableau Server\data\tabsvc\files\log-archives
tsm maintenance ziplogs -f archievedlogs -d -u -p
exit

Script permissions

I would change the line
sudo chmod +x /var/opt/tableau/tableau_server/data/scripts/tableau-server-housekeeping.sh
to
sudo chmod 700 /var/opt/tableau/tableau_server/data/scripts/tableau-server-housekeeping.sh
because of the cleartext password in the schript.

Email notification

It will be very useful if you could add email notification with the status of Clean up logs and Bakcup.

Error in backup script

In /tableau-server-housekeeping/windows/2019.2 and later/tableau-server-backup-script.cmd you look to have removed the command line options for tsm username and password. There is however still one occurrence in the script that is looking for these and this is causing the script to error and partially fail:

:: Grab the location of the backup directory
:set_backup_dir
ECHO %date% %time% : Getting the location of the default backup directory
FOR /F "tokens=* USEBACKQ" %%F IN (tsm configuration get -k basefilepath.backuprestore -u %tsmadmin% -p %tsmpassword%) DO (SET "backuppath=%%F")
ECHO The default backup path is:
ECHO %backuppath%

If you remove the -u %tsmadmin% -p %tsmpassword% from the script all then works correctly.

names in example wrong

inside files

For example, to schedule it to run once a day at 01:00, add this to your crontab
0 1 * * * /var/opt/tableau/tableau_server/scripts/tableau-server-housekeeping-linux.sh > /home//tableau-server-housekeeping.log

but files names:
tableau-server-backup.bash
tableau-server-logs-cleanup.bash

copy pasted that to cron and looking why it didn't works)

tsm cleanup -v

the -v switch in the tsm maintenance cleanup call appears to be removed.

var names don't match

/linux/tableau-server-backup.bash

You define copy_backup="no"
but in
#copy backups to different location (optional)
if [ "$copybackup" == "yes" ];
you're missing the "_"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.