Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
backup to email
#1
I attach two files,
first, sends whole database to an email, accepts dbname, email and sitename (not-important)

second file, does something special:
parameters same as first (i think)
but it drops/deletes non-critic tables so that, the email size reduces..
this is especially good for some large db's..

original author is written in file,
I made some modification, and made second file myself.. it is first in world, i think..

example usage:
<code>php backup2mail2.php drupal2 ehcp ehcp@gmail.com

you may put it in a cron job:
<code>1 1 */1 * * cd /root/server ; php backup2mail2.php drupal2 ehcp ehcp@gmail.com >> /var/log/cronisler_backup2mail.log 2>&1 &

That runs that emailer once a day..

See you.

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping