Skip to content

Simple PHP backup utility to copy an entire directory into a backup folder.

License

Notifications You must be signed in to change notification settings

dynamiccookies/Simple-Backup-Utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Backup Utility

GitHub GitHub file size in bytes GitHub Release Date GitHub release (latest SemVer including pre-releases) Deployed with 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 Folders: Select one or more folders to backup.
  • Delete Backups: Select one or more backups to delete.
  • Easy Update: Built-in update feature for seamless updates to the latest version.
  • 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 latest release.
  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(s) in the "Backup Name" field.
  3. Place a checkmark next to each of the folders you'd like to backup.
  4. Click the "Backup Selected Folders" button.

Deleting an Individual Backup

  1. Click the trash icon next to the Existing Backups entry.

Deleting Multiple Backups

  1. Select the checkmark for each backup folder to be deleted.
  2. Click the trash icon in the checkbox column header.

Note: The trash icon only appears when two or more checkboxes are selected.

Updating to Latest Version

Only available if you see the New Version Available message in the bottom right corner of the screen.

  1. Click the (Update Now) link in the New Version Available message.
  2. When the page reloads, the new version number should be shown.

Folder Structure

The Simple Backup Utility expects the following parent/child 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, including index.php.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For any issues, questions, or feature requests, please open an issue.

About

Simple PHP backup utility to copy an entire directory into a backup folder.

Resources

License

Stars

Watchers

Forks

Languages