Email DB Backup

May 2, 2007

Is it possible to have the bash script, that is executed using a cron job, posted below email the DB backup to me as well as saving a copy to the server as it is currently doing?

# Script Function:
# This bash script backups up the "DBname" and "DBname" db everyday at 4am with a file name time stamp and tar.gz zips the file.
# The "DBname" db will be saved in /backups/database_backups/"DBname"/
# The "DBname" db will be stored in /backups/database_backups/"DBname"/
# Db backups older than 30 days will be deleted.

#[Changes Directory]
cd /home/"accountname"/backups/

#[Old DB Deletion Script]
find /home/"accountname"/backups/database_backups -name "*.tar.gz" -mtime +30 -exec rm -f {} ;

#[Stamps the file name with a date]
TIMESTAMP=`date +%m-%d-%y-%H%M`

#[DB Backup Scripts]

# "DBname"
HOST=localhost
DBNAME="DBname"
USER="DBusername"
PASSWORD="DBpassword"
DUMP_PATH=/home/"accountname"/backups/database_backups/"DBname"
mysqldump --opt -c -e -Q -h$HOST -u$USER -p$PASSWORD $DBNAME > $DBNAME.sql
tar czpf $DUMP_PATH/$DBNAME.$TIMESTAMP.tar.gz $DBNAME.sql
rm -f $DBNAME.sql

# "DBname"
HOST=localhost
DBNAME="DBname"
USER="DBusername"
PASSWORD="DBpassword"
DUMP_PATH=/home/"accountname"/backups/database_backups/"DBname"
mysqldump --opt -c -e -Q -h$HOST -u$USER -p$PASSWORD $DBNAME > $DBNAME.sql
tar czpf $DUMP_PATH/$DBNAME.$TIMESTAMP.tar.gz $DBNAME.sql
rm -f $DBNAME.sql

View 1 Replies


ADVERTISEMENT

Email Backup

Jan 15, 2009

Can anyone suggest a solution for one of my clients.

Their email is very important to them and is their main point of contact.

Their old account (shared hosting) got suspended a few times due to going over their hourly limit.

I have now put them on a new account on my VPS. Unfortunately the ip was blacklisted in the first week and they are getting about 25% of mail bounce backs due to being rejected. They also experienced a few hours of downtime while the nameservers propagated, so all in all they're not very happy.

I would like to offer them the following:

incoming back - if their server/mail goes down, mail either gets stored or re-routed to an alternative address

outgoing mail - if their server/mail goes down, they have an alternative way of sending email from their domain

outgoing mail - if their ip address gets blacklisted again, an alternative way of sending email from their domain until the issue is fixed.

View 6 Replies View Related

Backup Email

Apr 25, 2009

I currently have a VPS server that runs Cpanel with all my websites and clients websites. My question is is it possible for to set up if the primary server goes down that emails will go to another server and still get delivered. Would I set the secondary server to ns3. and ns4.?

View 10 Replies View Related

Backup Email Solution

Apr 17, 2007

If an email server needs taking offline for a while, is there a simple solution that can be put in place that can catch and temporarily hold the email until it can be released when the server is back online?

View 4 Replies View Related

Email Backup Setup

Nov 28, 2007

Its been a while since I have posted on here, anyway heres my problem.

I have a cPanel server in my office which handles the email for 2 domains.

I've also got a reseller account on a helm server.

What I want to do is: if I have a problem with the office server (outage) all emails will be routed to the helm server then delivered back to the office server once available. So any incoming email wont be bounced/lost.

View 1 Replies View Related

How To Backup Outlook Express Email Folders And Settings

Mar 7, 2007

I want to reinstall Windows Xp soon, as I got a virus and after cleaning the computer doesn't work as smooth as before. I gives some strange erros and sometimes it justs hangs up... I want to backup Outlook Express emails and settings before reinstall, and restore afterwards.

View 1 Replies View Related

Plesk 12.x / Linux :: Cronjob To Backup Email On One Domain?

Oct 29, 2014

Seems if I want to back up a domain's emails to a remote server (3x a week) I might be able to accomplish that with a Scheduled Task / Cronjob? I have a weekly full domain backup from the Plesk scheduled backup. But I can only set one backup per client. So I'd like to backup email separately, several times a week.

I found this:

# /usr/local/psa/bin/pleskbackup –domains-name yourdomain.com –only-mail -v

But I'm looking to send to a remote FTP repository. Can it be done with "Scheduled Task"?

View 8 Replies View Related

Backup Old Cpanel Site And Restore It On New One But Email Passwords Lost

Aug 9, 2008

I moved from a host to another and wanted to restore/use the email adresses that are already saved on my old host account.

I did a full backup by using Cpanel's wizard and saved it on my computer. Extracted everything and then by using FTP I have put all the files on my new server which is using Cpanel as well.

Although all email adresses are now visible in my Cpanel the old passwords will not work anymore......

View 4 Replies View Related

Plesk 11.x / Linux :: Download Backup To Local Computer From Backup Manager

May 17, 2015

I have multiple backups stored under server repository (subscriptions --> <domainname> --> website and domains --> backup manager).

The physical files are located at: /var/lib/psa/dumps/clients/904279/domains/<domainname>/

When I click the green arrow to download these files to a local computer (see attached image) I get a new page with title "Download the backup file". On this page I have the option to set a password on the downloaded file, but no matter what I do (password or no password) the file is not downloaded to my local PC. I don't get a pop-up box with the option to save the file. Just nothing happens ...

View 1 Replies View Related

Plesk 12.x / Linux :: Backup And Quota - Limit Number Of Cores Backup Zipping Tool Uses?

Aug 15, 2014

I have 2 problems:

Firstly I wonder if there is any possibility to limit the number of cores the plesk backup zipping tool uses? This pigz takes up all my CPU. Is there any way I can reduce the amount of cores it uses because all my websites are down every time a backup takes place for around 3 minutes.

Secondly I get the following in my syslog:

1 baby plesk sendmail[20189]: Error during 'check-quota' handler

I don't know what is wrong. I think it's since the upgrade to Plesk 12. I now have 12.0.18 Update #13.

View 9 Replies View Related

Plesk 12.x / Linux :: 413 Request Entity Too Large - Can't Upload Backup Files With Backup Manager

Sep 17, 2014

I have a 6GB backup file created with another Plesk Backup Manager, now I trying to upload this backup file to my Plesk Backup Manager but after upload 3% I am getting "413 Request Entity Too Large" error, I tried with disable NGINX but still getting this error.

how can I resolve this error or is their any other way to upload my file on backup manager?

I see that Backup Manager have a file size restriction of 2GB how can I increase this?

View 2 Replies View Related

Plesk 12.x / Linux :: How To Include More Directories In Backup With Backup Manager

Feb 11, 2015

I have an Ubuntu 14.04 LTS 64 bit virtual private server with Plesk 12. The server is hired from a hosting provider. The server is used to run the Odoo ERP application (using postgres database).

The Odoo application is running fine and now I want to create a backup of the application using Plesks Backup manager.

I choose configurations and content option in the backup manager but the created backup is only 200kb.

I think the problem is the location where the Odoo application is installed is not included in the backup. I made a tar backup from the server and extracted it on my pc. It seems that the main parts of the Odoo application are in the var, opt, etc and usr directories (not in a domain but under root).

Installing the application in a domain would solve the Plesk backup issue I think but the installation script of Odoo puts Odoo in var, opt, etc and usr directories even if I put the install script in the directory of a created domain. Since the manual Odoo installation is complicated I am very happy to use the script.

My questions are:

1. Is it possible to include the directories var, opt, etc and usr in the Plesk backup and how and where do I do that?

2. Can I restore such a backup without no problem in Plesk?

View 1 Replies View Related

Rsyn --backup --backup-dir Switches For Incremental Backs

Jan 26, 2007

I current do some rsync backups with a command like so every day

rsync -az -e ssh --stats --delete --exclude "stuff" / user@server:/home/user/

What I want to do is have some incremental backups in there in subdirectories. So, for example, something like this on the remote server
/home/user/something.tuesday
/home/user/something.friday

I thought the --backup --backup-dir Switches were used to store just the files that had changed in seperate directories, am I wrong on that?

I've read everything I could find, including the big rsnapshot scripts, but I'm not able to do what I want, it seems so simple but something's not right, am I wrong that subdirs should have just files that are new or have changed. I tried various things like this, but had no luck

rsync -az -e ssh --stats --delete --backup --backup-dir=/home.Thursday --exclude "stuff" / user@server:/home/user/

View 0 Replies View Related

How Transfer Full Backup From FTP Backup To CPanel?

Dec 14, 2008

I have transfer full backup with cpanel to ftp backup,

But,How transfer full backup from FTP Backup to cPanel?

Whitch software?

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved