- Bash Script – An Alternative to Logrotate.d for Asterisk Log Files
- Bash Script – Auto-Repair an Array of MySQL Database Servers
- Bash Script – Backup All Databases to Separate Files
- Bash Script – Convert a Batch of WAV Files to SLINEAR Format for Asterisk Hold Music
- Bash Script – Install HP Server Management Tools on Ubuntu Server
- Bash Script – Log Concurrent Asterisk Calls to MySQL and Other Useful One-Liners
- Bash Script – Move Asterisk Call Files into Spool Directory
- Bash Script – Move Files into Subdirectories Based on Modified Date – OR – Moving Ntop Netflow Dumps into Subdirectories by Date
- Bash Script – OpenMCU-ru Service Monitor -OR- Monitor and Automatically Restart a Service Upon Failure
- Bash Script – Pcapsipdump Spool Directory File Rotation – OR – Rotate Directories Based on YYYYMMDD Format
- Bash Script – Script Based MySQL Table Replication on an Array of Slaves
- Bash Script – Split a Variable into an Array with Carriage Return Line Feed as the Delimiter
- Bash Script – Sync a File to an Array of Hosts
- Bash Script – Test Veeam Linux Agent Socket and Restart Service if Needed
- NextCloud – Purge Music Library from DB
- NextCloud – Rescan Music Library for All Users
- Startup Script for OpenMeetings Open-Source Video Conferencing Server
- Ubuntu – Icecast2 Startup Script with Ices2 Support
- Ubuntu Desktop – Run X11vnc Server at Startup
NextCloud – Purge Music Library from DB
I recently posted an old bash script I had written to forcefully rescan the music library for the music app in NextCloud when new files aren’t being found, but what happens when you delete or make some changes to the MP3’s or file structure of your music library, then you go to run the rescan library occ script, and NextCloud proceeds to go ape shit, spewing a whole lot of errors in RED, and you can’t do anything? What now, home slice?
Welp, after some research, I found the easiest fix was just to dump the corresponding “oc_music_tracks” table from the database and start fresh. So again, it’s script writin’ time, boyz and girlz!
Continue reading “NextCloud – Purge Music Library from DB”