Deleting attachments directory contents?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
cwshubby
Posts: 27
Joined: Thu Jul 17, 2014 3:36 am

Deleting attachments directory contents?

Post by cwshubby »

If I delete the contents of the Hesk attachments directory (except for the last 90 days) would this cause any problems?

It is getting a little large and killing backup space.
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Deleting attachments directory contents?

Post by mkoch227 »

Klemen would know the answer better than anyone else here, but I don't see an issue, unless someone wants to grab an attachment from an old ticket, in which the attachment would no longer exist. But the help desk itself should function normally.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Deleting attachments directory contents?

Post by Klemen »

Just like Mike said - HESK will still function normally, but anyone tries to download a deleted attachment an error will show saying "This file has been deleted from the server and is no longer available for download"
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Re: Deleting attachments directory contents?

Post by alcazar »

previous posts +
You should consider restricting the number and size of attachments.
cwshubby wrote:... It is getting a little large and killing backup space.
You dont do backups on the same space do you??
Backups should be never on the same storage device as the original files.
Alcazar
(nach Diktat spazierengegangen)
cwshubby
Posts: 27
Joined: Thu Jul 17, 2014 3:36 am

Re: Deleting attachments directory contents?

Post by cwshubby »

I have the limits set, but over a year it builds up. We get a lot of images from customers.

All backups are done offsite via FTP. The attachments directory makes it a pain to archive :)
J_E_F_F
Posts: 30
Joined: Sun Sep 28, 2014 2:55 pm

Re: Deleting attachments directory contents?

Post by J_E_F_F »

Could an option be added to v2.6 that allows cleaning/deleting of attachments of resolved tickets? Perhaps in the SETTINGS tab. Ideally it would alter the SQL DB to remove the attachment info from the ticket as well, so there would not be a user option to attempt to download a missing file.
cwshubby
Posts: 27
Joined: Thu Jul 17, 2014 3:36 am

Re: Deleting attachments directory contents?

Post by cwshubby »

Having an option to specify the days to keep attachments would be nice.

We use Hesk for a customer service KB and the attachments are used a lot.

We don't backup on the same drive and also backup off the site in multiple area.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Deleting attachments directory contents?

Post by Klemen »

For now you will need to manually delete the old attachments (or write a script/cron job to do that for you) because there is (still) no built-in way of doing this.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply