Jump to content
  • 0

How to manage Picklog ?


v1g0

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   1
  • Joined:  12/06/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   1
  • Joined:  01/11/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi v1g0,

I would recommend taking a read at Brian's post; and using that available script as a base for your own picklog management.

http://rathena.org/board/topic/54049-auto-sql-backup-for-linux/page__view__findpost__p__58378

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...