Code Monkey home page Code Monkey logo

cpanelremotebackup's Introduction

CPanelRemoteBackup

(see https://github.com/Unispezi/CPanelRemoteBackup/wiki/Home/ for most current version of this file)

What is it?

This is CPanelRemoteBackup, a tool to backup web sites which use cPanel as their administrative interface.

What does it do?

CPanelRemoteBackup will start a full backup in cPanel. Once the backup is finished, it will be downloaded, verified, and deleted on the server.

Why should I use this?

  • Runs on any machine
  • Can easily be started at regular intervals by any scheduler (CRON, Windows Scheduling Tools)
  • Setup free (if Java is available), no hassle with setting up your own FTP server where cPanel can put the backup file. Just run the tool, wait, and find the backup file on your machine
  • Will not eat up storage space on the server because the backups are deleted when they are downloaded

Requirements

For this to work, you need

  • a local Java installation
  • Username and password to log in to the cPanel web interface and to the FTP server of your web site
  • Sufficient free space in the home directory of your web site (cPanel will put the backup there)
  • Sufficient free space in the output directory to hold the backup

Usage

Example:
java -jar CPanelRemoteBackup-1.0.jar -user someusername -password somepassword mysite.mydomain.com c:/backups

Will log on to the given homepage, trigger a backup, and put it in c:\backups .

Output will look something like this:

Starting CPanel backup
Polling for backup we just started..: backup-5.6.2012_09-01-42_mysite.tar.gz
Polling for backup file size to become stable....: 352024131 bytes
Downloading backup-5.6.2012_09-01-42_mysite.tar.gz to c:\backups\backup-5.6.2012_09-01-42_mysite.tar.gz
Downloaded 352024131 bytes successfully
Verifying downloaded file ...OK
Deleting backup-5.6.2012_15-00-25_kadampak.tar.gz on server
Done.

Further help

Run
java -jar CPanelRemoteBackup-1.0.jar -help
for a list of options

How to build

You'll need

  • Java Development Kit (JDK)
  • maven

Then just run mvn package

In target you'll find an uber-jar, i.e. a JAR which contains the application logic plus all libraries it relies on.

License

CPanelRemoteBackup may be used under the MIT license:

Copyright (C) 2012 Carsten Lergenmüller

Permission is hereby granted, free of charge, to any person obtaining a copy of this 
software and associated documentation files (the "Software"), to deal in the Software 
without restriction, including without limitation the rights to use, copy, modify, 
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to 
permit persons to whom the Software is furnished to do so, subject to the following 
conditions:

    The above copyright notice and this permission notice shall be included in all 
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
    INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
    PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
    OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

cpanelremotebackup's People

Contributors

unispezi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.