8 gig article_attachments table on windows xp

Moderator: crythias

Locked
deansyst
Znuny newbie
Posts: 8
Joined: 19 Dec 2012, 14:41
Znuny Version: 3.1.4
Real Name: eric
Company: verpakt

8 gig article_attachments table on windows xp

Post by deansyst »

we have an otrs server that that runs on a windows xp box . the DB is almost 24.7 gigs inisize .with the article_attachments table being 8 gigs in size , :shock: this is because all the attachments and emails
are kept in the database.
I need to trim the database to a manageable size for back up purposes and was wondering if any of you guys out there have had any experience
/ pointers on how to trim down the data base.

there are future plans to migrate the OTRS server on a Linux platform.but the data base size is an issue.are there any documents or scripts that
i can use to delete old attachments.


ORTS Ver 3.1.4
OS ver Windows xp
DB ver Mysql 5.1
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: 8 gig article_attachments table on windows xp

Post by reneeb »

You could save the attachments on file system... see viewtopic.php?f=53&t=16418
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
deansyst
Znuny newbie
Posts: 8
Joined: 19 Dec 2012, 14:41
Znuny Version: 3.1.4
Real Name: eric
Company: verpakt

Re: 8 gig article_attachments table on windows xp

Post by deansyst »

before changing the mail storage from the DB to the FS . i still need to do some house
cleeaning on the current Humongous BD that is 24 gigs in size
arvas
Znuny newbie
Posts: 44
Joined: 15 Oct 2012, 09:08
Znuny Version: 3.0.11

Re: 8 gig article_attachments table on windows xp

Post by arvas »

do note when you change the db type the attachments in the old db will no longer be accessible until you reactivate the old db... it sucks finding this out midway :(
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: 8 gig article_attachments table on windows xp

Post by jojo »

you can move the attachments via script from one storage into another (please read the description in Sysconfig)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
arvas
Znuny newbie
Posts: 44
Joined: 15 Oct 2012, 09:08
Znuny Version: 3.0.11

Re: 8 gig article_attachments table on windows xp

Post by arvas »

wow jojo i did not know that.... im doing it now, if this works it'll be so awesome! getting a bunch of errors but it keeps moving onto the next, thats probably cos of the switch and use so i think thats normal..
Locked