Jump to content
  • 0

How to manage Picklog ?


Question

Posted

Hello,

I would like create a script for manage picklog.

The principle would be :

- Copying picklog table on a second database (database backup) with archiving.

- and truncate the picklog table of the main database.

with crontab monthly

Someone know how to do it ?

Someone can help me for make this script please ?

2 answers to this question

Recommended Posts

Posted

hi,

is easy, i dont create the script, but i guide you

you can create de script in perl, and use cronjob and mysqldump

mysqldump -p --user userdb dbname table > namebackup.sql //backup

And cronjob is easy

30 23 1 * * /script.sh

30 = minutes

23 = hour

1 = day

* = every months

* = every day of week (is day = 1)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...