This page was last edited on April 28, 2020, at 19:11.
Comments or questions about this documentation? Contact us for support!
WebDAV performance degrades over time and the file system becomes inoperable if all your recording files are saved in a single directory. If you are using Apache HTTP Server for your WebDAV server, Genesys recommends using the following example procedures to create a folder hierarchy.
Before you can create recording storage with folder hierarchy, you must have the following items in place:
#!/bin/sh for year in 2019 2020 2021 2022 2023 do for month in 01 02 03 04 05 06 07 08 09 10 11 12 do for day in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 do for hour in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 do echo "mkdir -p $year/$month/$day/$hour" mkdir -p $year/$month/$day/$hour done done done done
After saving the file, ensure the script has read and execute privileges and then run the script from /mnt/recordings.
RewriteLog "logs/rewrite.log" RewriteLogLevel 1 RewriteEngine on RewriteRule ^/recordings/([A-Z0-9]*_(\d{4})-(\d\d)-(\d\d)_(\d\d).*) /recordings/$2/$3/$4/$5/$1 [P,L] RewriteRule ^/screens/([A-Z0-9]*_(\d{4})-(\d\d)-(\d\d)_(\d\d).*) /screens/$2/$3/$4/$5/$1 [P,L] RewriteRule ^/screens/([A-Za-z0-9]*_(\d{4})_(\d\d)_(\d\d)_(\d\d).*) /screens/$2/$3/$4/$5/$1 [P,L]
LogLevel debug rewrite:trace1 RewriteEngine on RewriteRule ^/recordings/([A-Z0-9]*_(\d{4})-(\d\d)-(\d\d)_(\d\d).*) /recordings/$2/$3/$4/$5/$1 [P,L] RewriteRule ^/screens/([A-Z0-9]*_(\d{4})-(\d\d)-(\d\d)_(\d\d).*) /screens/$2/$3/$4/$5/$1 [P,L] RewriteRule ^/screens/([A-Za-z0-9]*_(\d{4})_(\d\d)_(\d\d)_(\d\d).*) /screens/$2/$3/$4/$5/$1 [P,L]
tail -f error_log|fgrep '[rewrite:'