VIMP offers the option of dividing the directory in which the transcoded media is stored into subdirectories. This is useful if you have a large amount of media in the portal or want to mount different media storages.
Grant the appropriate permission to the user role(s) that should be able to create and manage storage locations:
With this permission, you will find the new menu item “Storage Locations” in the top navigation bar of the admin panel. Here you can create and manage media directories:
Enter a valid directory name (no spaces, special characters, or punctuation marks). Currently, only “Media” can be selected as the type.
Once the entry has been created, it appears in the list and can be edited as follows:
Enter a valid directory name (no spaces, special characters, or punctuation marks). Currently, only “Media” can be selected as the type.
Once the entry has been created, it appears in the list and can be edited as follows:
Options:
- Delete: Deletes the storage location
- Set as default storage location for new media: All newly uploaded media will be stored in this directory.
- Update storage usage: Recalculates the size of the directory.
In the options for a medium, you have the option of moving the medium to another storage location if you have the appropriate authorization:
To access this option, your user role must have the “allow change storage location” permission:
After clicking on the option, specify the new storage location and confirm your selection:
This function can also be called up via a batch action, which allows you to mark multiple media items for moving at once.
In the media overview, you can display two new columns showing the current and planned storage locations:
The actual transfer of media is performed by a task that must either be called manually or set up as a cron job. To do this, execute the following command on the CLI:
./vimp framework:storagelocation --move
When this task is executed, all marked media are moved to the corresponding destination directory. This task can also be set up as a cron job that runs once a night, for example:
0 * * * php -f /pfad/zu/vimp/vimp -- framework:storagelocation --move > /dev/null 2>&1
For more complex shifts, call the task without parameters:
./vimp framework:storagelocation
An assistant will now guide you through the options. You have the following choices:
1. By timeframe: Search for media by a min / max date for the point in time of creation / upload / conversion
2. Number of views: Search for media by number of min / max views
3. Not watched since: Search for media that have not been watched since x days
4. Status: Search for media with a certain kind of status
5. Storage location: Move all media from one storage location to another
6. Publication: Search for media that are private / not private
7. Featured: Search for featured media
8. Time based release: Search for media that are not yet released / expired
9. Client: Search for media of a certain client
0. Abort
Depending on which option you choose for moving files, you will be guided through a corresponding wizard. At the end, the files will be moved to the new destination directory based on the selected filter.