This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/****************************************************************************************************************** | |
* Source: http://www.emvee-solutions.com/blog/magento-create-database-backup-php-code/ | |
* | |
* Creating a Magento database backup in var/backups | |
******************************************************************************************************************/ | |
//increase execution time | |
ini_set('max_execution_time', 900); //900 seconds = 15 minutes | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/****************************************************************************************************************** | |
* Source: http://www.emvee-solutions.com/blog/magento-custom-reindex-script/ | |
* | |
* Custom Magento re-indexing script | |
******************************************************************************************************************/ | |
//Place this file in your Magento root folder, or modify the require once to match your directory. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/****************************************************************************************************************** | |
* Source: http://www.emvee-solutions.com/blog/create-tar-files-archive-files-server-using-php-script/ | |
* | |
* Please note that the script wil by default tar all files and (sub)folders from the directory you uploaded the script to | |
* into a file named archive.tar. You can overwrite the directory and archive name by calling the script with your own | |
* parameters, like this (replace the italic text for your own needs): | |
* | |
* http://domain.com/archive.php?targetname=achivename.tar&dir=relative/folder/to/put/in/archive/ | |
******************************************************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* PHP: Recursively Backup Files & Folders to ZIP-File | |
* (c) 2012-2014: Marvin Menzerath - http://menzerath.eu | |
* contribution: Drew Toddsby | |
*/ | |
// Make sure the script can handle large folders/files | |
ini_set('max_execution_time', 600); | |
ini_set('memory_limit','1024M'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Enter directory | |
cd "backups/" | |
# Count Files in dir | |
FILES=$(ls | wc -l) | |
# If FILES are more than 12 remove sort by oldest | |
while [ $FILES -gt 12 ]; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* PHP: Recursively Backup Files & Folders to ZIP-File | |
* MIT-License - Copyright (c) 2012-2017 Marvin Menzerath | |
*/ | |
// Make sure the script can handle large folders/files | |
ini_set('max_execution_time', 600); | |
ini_set('memory_limit','1024M'); |