-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74c9a51
commit 70f09be
Showing
1 changed file
with
68 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,68 @@ | ||
# Simple-Backup-Utility | ||
Simple PHP backup utility to copy an entire directory into a backup folder. | ||
# Simple Backup Utility | ||
![GitHub](https://img.shields.io/github/license/dynamiccookies/Simple-Backup-Utility?style=for-the-badge "License") | ||
![GitHub file size in bytes](https://img.shields.io/github/size/dynamiccookies/Simple-Backup-Utility/index.php?style=for-the-badge) | ||
![GitHub Release Date](https://img.shields.io/github/release-date/dynamiccookies/Simple-Backup-Utility?style=for-the-badge "Release Date") | ||
![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/dynamiccookies/Simple-Backup-Utility?display_name=tag&include_prereleases&sort=semver&style=for-the-badge "Release Version") | ||
[<img alt="Deployed with FTP Deploy Action" src="https://img.shields.io/badge/Deployed With-FTP DEPLOY ACTION-%3CCOLOR%3E?style=for-the-badge&color=0077b6">](https://github.com/SamKirkland/FTP-Deploy-Action) | ||
|
||
Simple Backup Utility is a PHP script that allows you to create and manage backups of sibling folders within the same directory. | ||
|
||
## Features | ||
|
||
- **Backup Creation**: Easily create backups of specific folders. | ||
- **Backup Deletion**: Remove existing backup folders. | ||
- **User-Friendly Interface**: Intuitive web interface for straightforward operation. | ||
|
||
## Requirements | ||
|
||
- PHP (version 5.6 or higher recommended) | ||
- Web server (e.g., Apache, Nginx) | ||
|
||
## Installation | ||
|
||
1. Clone the repository or download the ZIP file. | ||
2. Place the script (`index.php`) in the directory where you want to manage backups. | ||
3. Ensure the directory has appropriate permissions for creating and deleting files and folders. | ||
|
||
## Usage | ||
|
||
### Creating a Backup | ||
|
||
1. Access the script via a web browser after installation. | ||
2. Enter a name for your backup in the "Backup Name" field. | ||
3. Click the "Backup" button for the environment folder you want to backup. | ||
|
||
### Deleting a Backup | ||
|
||
1. Click the trash icon next to the Existing Backups entry. | ||
|
||
|
||
## Folder Structure | ||
|
||
The Simple Backup Utility expects the following directory structure: | ||
- Project Directory | ||
- prod | ||
- staging | ||
- test | ||
- dev | ||
- backups | ||
- **index.php** (this script) | ||
- prod_release-v1 | ||
- staging_benchmark-tests | ||
- test_data-fixtures | ||
- dev_feature-branch-backup | ||
|
||
The script displays all of its parent directory's sibling folders. In this example, prod, staging, test, and dev. | ||
|
||
The backup process names the selected directory using the format `<source folder>_<backup-name>` based on the selected directory to backup. | ||
|
||
**Note:** The names of all files and folders are arbitrary and can be customized as needed. | ||
|
||
|
||
## License | ||
|
||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. | ||
|
||
## Support | ||
|
||
For any issues, questions, or feature requests, please [open an issue](https://github.com/dynamiccookies/Simple-Backup-Utility/issues). |