Giter VIP home page Giter VIP logo

webhost_backup's Introduction

Webhost Backup Script

This script performs the following tasks:

  • Generates backups of whole sites, including webspace and databases, grouped together.
  • Compresses the backups using either "gz" (fast) or "bz2" (small) compression algorithms.
  • Deletes backups older than a specific date to meet a defined quota.
  • Optionally uploads the backups to a remote FTP server, with support for SSL and unsecure fallback.
  • Sends a notification email upon completion, with detailed logs and results.
  • Customizable settings for memory usage, execution time, backup directories, FTP and mail configurations, etc.

Copyright:

  • Author: Eiko Wagenknecht (eiko-wagenknecht.de)

Requirements:

  • PHP version 7.0 or higher (created and tested in PHP 7.4).
  • Appropriate permissions for reading, writing, and executing the script.
  • FTP and mail configurations if using the corresponding features.

Note:

  • This script is tested only with all-inkl.com, but should work for other hosters as well.
  • Shows errors by default. Add "php_flag display_errors 1" to the .htaccess file if you want to see parse errors as well.
  • Ensure that the target directory is relative to the root of the webspace and does not contain any other files, as old files will be deleted to meet the quota.
  • Customize the settings under the "START EDITING HERE" section according to your needs.

For a detailled walkthrough (in German though) on how to use this see https://phenx.de/komfortables-backupskript-fuer-all-inkl-com/.

License

No proper licensing chosen yet. So far: Mainly you can do with this whatever you want. This explicitly includes

  • Using the script to backup your private or commercial site.
  • Modifying the script and sharing the modified version. In this case the original author (me) must be named and a link to either this github repository or the blog entry included in the source (e.g. in the backup.php file).

Commercial redistribution is not allowed. If you want to make money using this, contact me first and we can talk about the details.

Disclaimer

I take no responsibility in any way for damage done by using this script. Please act responsibly and make sure that your backups work the way you expect them to.

webhost_backup's People

Contributors

eikowagenknecht avatar gumgumkanone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

webhost_backup's Issues

File ergänzt ...

Hallo,
ich habe das Script installiert und entsprechend konfiguriert. Hat soweit gut funktioniert - Vielen Dank dafür!

Leider habe ich festgestellt wenn ich mehrmal am Tag ein Backup mache das er hier jeweils nur ein Archiv anlegt und dort entsprechend Dateien hinzufügt was bei mir zu Problemen führt.

Besteht die Möglichkeit hier jeweils eine File pro Backup zu erzeugen und nicht pro Tag?

Quota limit leads to deletion of backup.php

Hi Eiko,
every time the script reaches its' defined quota limit it starts deleting old files in the specified folder. That's perfect. Unfortunately it also deletes the backup.php and cron_backup.php which are also located in the backup folder according to your documentation. It seems the script checks only the creation date of all files and not if it is an actualbackup file? What can we do?
Regards, Christian

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.