Skip to content

YPTStorage Plugin

Daniel Neto edited this page Jun 28, 2023 · 3 revisions

This plugin is related to the app https://github.com/WWBN/AVideo-Storage

Saving your encoded videos on the storage automatically

First, you need to install the plugin and click on the Default Storages button

image

then you will see a page where you can choose the rules for your uploads

image

Move All Videos to Storage

In this guide, we will explain how to use the moveAllVideosToStorage.php script. This script is instrumental in migrating all of your videos to the storage. It will conveniently skip any video already present in the storage.

Location: By default, you can find this script at /var/www/html/AVideo/plugin/YPTStorage/tools/moveAllVideosToStorage.php. However, this might vary based on your specific installation.

Prerequisites: This script requires the YPTStorage plugin version 4.6 or higher to function correctly.

Using the moveAllVideosToStorage.php script

To execute this script, you will need to use the command line interface (CLI). Please follow these steps:

  1. Open your terminal or command line interface.

  2. Navigate to the directory where the script is located using the cd command. For example:

    cd /var/www/html/AVideo/plugin/YPTStorage/tools/
    
  3. Once you are in the correct directory, you can run the script by entering the following command:

    php moveAllVideosToStorage.php
    

The script will then begin processing, moving all of your videos to the storage. As mentioned, if a video is already in storage, it will be skipped, preventing any duplication or redundancy.

Please note: This process might take some time depending on the number of videos and their sizes. Ensure that your system has sufficient resources to perform this operation smoothly.

Clone this wiki locally