Announcement

Collapse
No announcement yet.

cron

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cron

    Is it possible to place this script called backup_commands.sh in my root and then execute a cron to run the backup?
    Code:
    mysqldump xxx_paul -xxx_paul -pfqh6P1i4Sy > /home/xxx/database_dump.sql
    zip -q /home/xxx/database_dump.zip  database_dump.sql
    mutt -s "database backup" -a /home/xxx/database_dump.zip [email protected]
    rm -f /home/xxx/database_dump.zip /home/xxx/database_dump.sql

  • #2
    Re: cron

    Originally posted by mrpp View Post
    Is it possible to place this script called backup_commands.sh in my root and then execute a cron to run the backup?
    Code:
    mysqldump xxx_paul -xxx_paul -pfqh6P1i4Sy > /home/xxx/database_dump.sql
    zip -q /home/xxx/database_dump.zip  database_dump.sql
    mutt -s "database backup" -a /home/xxx/database_dump.zip [email protected]
    rm -f /home/xxx/database_dump.zip /home/xxx/database_dump.sql
    Hi! Do you want to run this on a dedicated/VPS environment or on our shared/reseller hosting?
    Rock _a.k.a._ Jack Daniel

    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    Comment

    Working...
    X