Automated Remote FTP Backup Shell Script For PLESK
Jul 4, 2008I found this useful script to get backup in plesk:
http://www.web-hosting-control-panel...kup/gfx_backup ...
I found this useful script to get backup in plesk:
http://www.web-hosting-control-panel...kup/gfx_backup ...
It has been bought to my attention during our upgrade planning, that PPA & Plesk Panel do not offer the functionality for setting up a backup MX servers. In our current configuration we use Sendmail as both secondary and tertiary MX servers. These are manually configured and prone to configuration mistakes.
Multiple scenarios need to be taken into consideration.
Scenario 1: Hosters Plesk hosted primary mail server + secondary & tertiary mail servers.
Scenario 2: Client hosted primary mail server + hosters secondary & tertiary mail servers.
I am looking for alternate ways for backup / secondary MX servers for our planned PPA / Plesk deployment. An automated solution would be ideal, but we are falling short trying to find a solution to streamline the process and remove margin for error.
I have a few questions about backup. Other than any backup service provided by your host, do you backup your vps regularly?
Is it automated or manual?
Are you using any external backup service / server?
Is there a way to automate the generation and FTP of home directory backups in Cpanel?
CPanel lets you create a full account backup and ftp's the result to another server but can only be done manually from what i understand. Is there a way to initiate the process automatically? maybe schedule it for once a week.
i recently find out that I don;t have an database backup for one of my biggest websites.
The database I'm talking about has 228 tables (198.6 MB)
In the backup file I only get this :
-- MySQL dump 10.11
--
-- Host: localhost Database: lxxxxxxa_sXXXl
-- ------------------------------------------------------
-- Server version5.0.45-community-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
The other databases I have tried are all ok, but none is this big. Is there any size limit ?
I have uploaded an printscreen with the setings of my WHM.
Since moving to version 12 on the remote FTP backup is not working.
This makes the tar of 50K ~
We have chosen "Setting and content domain" ...
keep a local and remote backup of certain subscriptions or at least have a full server backup on FTP.
I have a livedrive.com reseller account which allows be to quite cheaply add 512GB of remote storage accessible through SFTP, FTP and WebDAV. I created this partition and added it as a server-level FTP repository in Plesk 12 (latest build). During testing I added a firewall exception for traffic on the FTP IP-address and figured that I had to put the FTP repository in passive mode to properly connect.
After setting this up I ran a configuration only backup to test if everything was working properly. The backup was created properly and can be accessed through the FTP as well: success!
My second test was running a full server backup through the manager. The ±40GB file was created properly (I could see my disk usage increase and decrease through new relic monitoring) and supposedly transferred to the FTP repository according to Plesk.
When I look at the FTP or the Plesk Backup Manager both indicate that the full server backup is 0kb in size.
After this issue I figured: I really don't care about a full server backup, I mostly care about a specific set of subscriptions that have new content on a daily basis and need to be backed up properly as well. Those subscriptions are already on a daily or weekly backup scheme that places backups on the local repository.
What I would eventually like to do is create daily or weekly backups on the local repository and create weekly or monthly backups on the FTP repository for those specific subscriptions, but unfortunately you cannot (by default) setup Plesk to automatically backup to local and remote based on different or even the same intervals.
And this is the more important question: How to be able to create/setup a backup automation that keeps local and remote backups for the same or different intervals? Either through the Plesk interface, a plugin or a script?
Running Plesk 12 on CentOS 6.6
Update:
Just tried running the same server wide backup, but this time as a multivolume backup. This resulted in the following error:
ERROR: () Can't upload file 'backup_info_1505301327.xml' to ftp. Error code: 1
I'm using Plesk 12.0.18 version with Windows 2012. I need to backup files to remote ftp server. Remote server configuration is Windows 2012 with IIS server. It works with ftp clients very well.
But, i have a problem about Personel FTP Repository. I open Personal FTP Repository Settings and write all boxes with true information about remote ftp server but it says "Transport error: unable to list directory: Curl error: Login denied".
Ftp server works fine with ftp clients and cpanel backups.
Are there any providers out there can be integrated with Plesk so that DNS zones for all vhosts are automatically propagated on the secondary DNS service?
I've asked DNS Made Easy but they advised that the domain has to be set up manually with them first.
I am using a Linux server together with Parallels v10.31 ... Unfortunately I get little or no real support from my host so and if I do it's cryptic.
I have been getting a large amount of emails from my server [hundreds daily].
I have attached a screen grab indicating type of email being sent.
I have created only one cron job and that was to reset the RAM on a regular base.
Also is it safe to update to the latest version without a major disaster happening....
I'm trying to redirect users to database/mail management pages with automatic login link, while logging in part works ok, I have issues with redirections.
Plesk is installed on different server than my site, and if I try to use "success_redirect_url" param in link url, it will show this error "Original link and target URL should be on the same domain."
It works ok if I prevent browser from sending http referrer to plesk, but I'm not sure if it will work for all user as this depends on their browser.
Is this a bug? Is there a workaround that would not depend on used browser?
I would like to weight the benefits and costs of using remote backup and local backup to another hardisk? Let's assume the price is the same.
What's the benefits of using remote backup?
Is it secured to use local backup in another hardisk?
I'm running on linux centos.
What happend if hacker get hold of my server?
Currently, i have 80GB of diskspace. Does it mean i will need at least 80GB of ANOTHER hardisk to backup that?
I have a linux dedicated server and use BMU (BackMeUp) for create cpanel full backup.
But this cant create remote backup for me. BMU use "ncftp" for this. and i see following error about this problem:
Time: Fri May 16 03:38:17 2008
The following list of files have FAILED the md5sum comparision test. This means that the file has been changed in some way. This could be a result of an OS update or application upgrade. If the change is unexpected it should be investigated:
/usr/local/bin/ncftp: FAILED
So, im install "ncftp" manually, but issue not resolved and i havent remote ftp backup too!
How can resolve this issue?
BMU Refrence: [url]
I have already developed shell scripts to automate account management, add/delete users, change quota, passwords etc. I am now working on web interface which will be used for managing the accounts, testing some free scripts and writing tutorials.
So far, my scripts can create chrooted (jailed) accounts with some basic shell commands.
The same disk space is also configured in samba and rsync daemon. Customers can use ssh/sftp or simply mount it as a network drive. Free utilities for Windows users (like deltacopy) work just fine with rsync daemon. Script can also modify iptables-based firewall and allow only certain IPs to access the server but I am still working on that part.
It takes about 10 seconds to create a new account and I have tested it on CentOS server.
I'm thinking about buying a shared hosting plan with lots of space. Anyone do backups to remote ftp server instead of rsync? I was wondering if it was possible to configure ftp in such a way to only transfer files that are NOT present on the remote ftp. This way, it doesn't overwrite existing files and thus save on bandwidth. Is it possible to transfer an entire folder with a ftp command, I know the mput command is for uploading multiple files to another location. Lastly, what are the advantages of rsync over ftp besides saving banddwidth and trannsferring only files that were changed?
View 1 Replies View RelatedI noticed that when "WHM Remote Backup" backs up my websites via ftp, the tar.fz archives are incomplete, meaning the backup is pretty much useless. I have tried with both PASV on and off and it still persists.
Any ideas why?
Also, what is the command to force the whm remote backup to run?
What exactly do you do when you take a remote backup through resync?
For instance, if i signed up with say bqbackup and started resyncing and taking backups, would i be copying all the data from my server to the remote server or is it possible only to copy the cpanel backups made daily/monthly/weekly to the remote space?
Also, when the resync runs everyday, does it replace the old files or does it create a new copy of everything that has changed?
first of all i don't know where to post this, so if this is in the wrong section, any mod can move it to the right section .
what i need is, trusted remote backup space for websites.
i googled and found many, but i would love to know who is trusted and who isn't .
i don't need massive space, around 10-15 GB and about 100 GB monthly traffic .
What's the best way to do a remote backup? Right now I have them all being backed up to a 2nd drive on the server.
If I do a remote backup, is it just as easy to access the files and do a restore?
I am using BQbackup since 10 months ago without problems. But in the last 6 days the transference rate is very slow (3kB/s). I already sent some emails to Scott but I dont receive a reply. So I need to have a look in other alternative to store my backups.
View 14 Replies View Relatedi'm planning to add a remote backup to my vps, the only solutions i know at this time is only from www.crissic.com but i would like to know if there's other solutions out there used by WHT members
View 8 Replies View RelatedI've been exploring two possibilities.
1) Have a backup server in the same physical location as the main servers. Then have automated backups occur, through a local network. The benefits of this are obviously a) No bandwidth fee's b) Total control over data instead of relying upon a third party c) Faster transfer speeds.
However, that doesn't really help when it comes to disaster recovery etc, so, some sort of remote solution would probably be best.
2) Have a remote server in a different datacentre.
There's two ways of doing this, either by renting a server in an a different datacentre, and having remote backups that way (probably with Rsync), OR paying for some third party service.
I'd be interested in your input on what you think would work best and be most cost effective.
backup service for my dedicated server that can do the following:
Take backups of the server without my laptop being involved when the backup takes place.
(So I can take a vacation for two weeks and have my laptop turned off - while backups still taking place).
Strangely I have found it impossible to find such a service ... All services I have looked at require my laptop is turned on and running some software while backup of server is takeing place.
i run cpanel on centos,
and i backup all websites and system setting to the 2nd hd by whm's backup feature everyday,
i want to ask if any script or method i can backup all the files to another server in a period of time,
it may be a week or 3 three days...etc,
remote backup in Europe with rsync/ftp access. If possible, in the UK.
View 5 Replies View RelatedWhere can I find a company that sells backup service for Windows Servers?
View 10 Replies View RelatedI am searching for some nice prices remote backup storage for one of my cpanel servers.
View 14 Replies View Related