-
Notifications
You must be signed in to change notification settings - Fork 975
How to make a backup
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:
-
Videos Directory: Typically located at
/var/www/html/AVideo/videos
. -
Database Details: Found in the
configuration.php
file, which is located at/var/www/html/AVideo/
.
-
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.
-
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.
-
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. - To restore your AVideo platform, overwrite the videos directory with your backup files (adjust the
We offer several tools to assist with backing up your AVideo platform:
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.
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.