on ‎2018 Jun 18 6:43 PM
Hi,
The following directory have grown in size above 3gb:
/srv/hybris/data/media/sys_master/impex
Is it safe to remove all medias from this folder using: HMC->Multimedia->Media, then specify folder = "impex" and filter by date? or we can remove the cronjob executions.
Kindly suggest some safer way to perform media cleanup activity.
Thanks,
Request clarification before answering.
You're probably better deleting the impex cronjob that was used to import that media. Deleting them will delete the impex media plus any supporting media, e.g. logs, dump files etc.
Take a look at the CleanupCronJobStrategy
The default settings will delete all impex cronjobs (and their supporting media) as long as they were successfully imported and are older than 14 days. It will delete other cronjobs too that have no trigger and are older than the 14 days so you might want to review the exclusion list.
You could create a cronjob with this impex
INSERT_UPDATE CronJob;code[unique=true];job(code);sessionUser(uid);sessionLanguage(isocode)
;cleanupCronJobs;cleanupCronJobsPerformable;admin;en
and optionally schedule it run every day at 1am with
INSERT_UPDATE Trigger;cronjob(code)[unique=true];cronExpression
;cleanupCronJobs;0 0 1 ? * *
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
: I created a job based on CleanupCronJobStrategy and after executing I still have Impex Media items related to the cronjobs in my database, though the cronjobs got deleted. Is this job responsible for deleting cronjob media too? Or Is there any other job available for performing that action?
Not sure why yours wouldn't be deleted. It works for me.
Log files have a partof="true" attribute on the definition of CronJob.logFiles and sync dump medias have a similar attribute in the relationship SyncJobScheduleMediaRelation
For impex the unresolvedDataStore and workMedia attributes are marked as partof.
Are you talking about some other linked media?
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.