This guide outlines a step-by-step process, ensuring a smooth transition while maintaining the integrity of your media files. Follow these instructions to efficiently move Centova Cast media files to a new location on your server.
Step-by-Step Guide:
Prepare for Transition:
Before initiating the move, make sure to backup your media files and configurations to prevent any potential data loss.
Identify New Path or Partition:
Determine the destination for your media files, whether it’s a new path within the existing structure or a separate partition on your server.
Temporarily Disable Cron Jobs:
Suspend Centova Cast cron jobs during the relocation process:
mv -f /etc/cron.d/centovacast /etc/centovacast-cron.disabled
Stop Online Streams:
Ensure no streams are active by stopping them:
/usr/local/centovacast/bin/ccmanage batch --method=stop --username=all
Stop Centova Cast
Halt Centova Cast to facilitate the move:
service centovacast stop
Move Media Files:
Transfer the existing media files to the new location. For instance, if moving to
/new/path/media
:
mv /usr/local/centovacast/var/media /new/path
Create Placeholder Directory:
Generate a new placeholder directory for the media files:
mkdir /usr/local/centovacast/var/media
Adjust Ownership:
Ensure ownerships are correct:
chown ccuser.ccuser /new/path/media /usr/local/centovacast/var/media
Update Centova Cast Configuration:
Modify Centova Cast configuration to reflect the new media file path. Locate and edit the configuration file, usually located at /usr/local/centovacast/etc/centovacast.conf
, updating relevant paths.
Restart Centova Cast:
Restart Centova Cast to apply changes:
service centovacast start
Re-enable Cron Jobs:
Restore Centova Cast cron jobs:
mv -f /etc/centovacast-cron.disabled /etc/cron.d/centovacast
Congratulations! You’ve successfully relocated your media files. Stay tuned for more tutorials from TutoSquad, guiding you through the intricate landscape of system administration and configuration.