3 Replies Latest reply on Feb 9, 2015 6:30 AM by Toby Erkson

    issue with old log files data

    pavitra k

      I wrote following script and save in .bat file but its not cleaning the log files content/info still i could see information of more than 30 days...

      Day by day logs getting incresed ... Am i missing something ?




      forfiles /p "E:\backup\tableau" /s /m *.* /c "cmd /c Del @path" /d -7

      cd E:\Tableau\Tableau Server\8.2\bin

      tabadmin stop

      set my_logs=my_logs_%DATE:~10,4%_%DATE:~4,2%_%DATE:~7,2%_%time:~0,2%_%time:~3,2%_%time:~6,2%

      set backups=backups_%DATE:~10,4%_%DATE:~4,2%_%DATE:~7,2%_%time:~0,2%_%time:~3,2%_%time:~6,2%

      set dt=%DATE:~4,2%/%DATE:~7,2%/%DATE:~10,4%

      tabadmin ziplogs -l -n -d %dt% E:\backup\tableau\%my_logs%

      tabadmin cleanup

      tabadmin backup E:\backup\tableau\%backups%  -t

      tabadmin start

      tabadmin warmup