• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Cron Job for Tar and Mysql backups

M

matteveryday

Guest
I'm using Plesk 7.5.4 and it has a built in cron job interface. I want to use it to automate my backups. Right now I'm making a mysqldump and tar file of httpdocs directory (every 2 weeks).

I want to create a cron job for each of these processes. Would the commands be the same?

Mysqldump:
mysqldump --opt -uusername -ppassword database > /www/var/vhosts/website.com/private/backupname.sql

Tar:
tar -cvvf private/tarbackup.tar httpdocs/
 
Back
Top