#!/bin/bash

cd /media/WDBlue/backup/prestashop/daily/;
/usr/bin/mysqldump  --databases prestashop > /tmp/prestashop.sql;
/bin/tar cvzf prestashop"$(date '+%Y-%m-%d')".tgz /tmp/prestashop.sql
/bin/tar cvzf prestashopSiteWeb"$(date '+%Y-%m-%d')".tgz /opt/prestashop/*

