Jump to content
  • 0
v1g0

How to manage Picklog ?

Question

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 ?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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)

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.