Skip to content

How to make a backup

Daniel Neto edited this page Oct 17, 2024 · 11 revisions

To ensure the safety and security of your AVideo platform, it is crucial to perform regular backups of your database and videos directory. Below is a detailed guide on how to effectively back up your platform:

File and Folder Locations

  1. Videos Directory: Typically located at /var/www/html/AVideo/videos.
  2. Database Details: Found in the configuration.php file, which is located at /var/www/html/AVideo/.

Backup Instructions

  1. What to Backup:

    • Make sure to back up both the videos directory and the database. You can always re-download the platform software from GitHub, and any paid plugins from the marketplace site.
  2. External Backup Recommendations:

    • After completing the backup, copy the files to a separate, secure location such as a local computer, external hard drive, or cloud storage.
    • If using external storage like S3, B2, FTP, or AVideo-Storage, ensure that those files are also backed up.
    • For YPTStorage users, back up its specific videos directory. See more details in the storage options documentation.
  3. Restoring Your Platform:

    • To restore your AVideo platform, overwrite the videos directory with your backup files (adjust the configuration.php file if necessary) and restore your MySQL database.

    Note: The videos/cache directory does not need to be backed up and can be safely deleted before the backup process to save space.

Backup Tools

We offer several tools to assist with backing up your AVideo platform:

1. Backup Plugin

The Backup Plugin automates the process by zipping the videos directory and extracting your database, saving everything in a subdirectory within your plugin. You can then sync this subdirectory to another server to ensure your data remains recoverable in case of an incident. For detailed instructions, refer to the Backup Plugin documentation.

2. Clone Site Plugin

If you are not using VideoHLS, you can use the Clone Site Plugin to create a full backup of your AVideo platform. For more information, see the Clone Site Plugin documentation.

By following these steps and utilizing the backup tools provided, you can effectively secure your AVideo platform and ensure quick recovery if needed.

Clone this wiki locally