Re: [RDD] Automating live reads

2020-08-04 Thread Scott Powell
We use the MB rml for live reads and schedule them thru our traffic just
like a spot

MB :0.0 1 this is what you read !

Works for us

On Tue, Aug 4, 2020, 12:27 PM Mark Murdock 
wrote:

> Is there a way to use a macro and put it in the schedule to bring up a
> live read script in an editor for an on-air personality?
>
>
>
> Thanks,
>
>
>
> Mark Murdock
>
> KAMB
>
> 90 E. 16th St.
>
> Merced, CA 95340
>
> (209) 723-1015
>
> m...@celebrationradio.com
>
> Website 
>
>
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] rd_backup

2020-08-04 Thread David Klann
Hi Peter,

On 8/3/20 8:09 PM, you wrote:
> Hi guys,
> 
> In previous version, i used a slightly altered /bin/rd_backup.sh, to 
> automatically create a backup of my database. which worked quite well
> 
> After my update to 3.4, it seems to be lost.
> 
> Does anyone have a alternative for this, or maybe te original code ?
> 
> Regards,
> Peter

I can't say off hand what happened to rd_backup.sh, but I have a ZSH 
script that I've been using for years. It's on github at 
https://github.com/opensourceradio/ram/blob/master/usr/local/bin/database-backup

It requires ZSH because it uses a few Z-shell features that I've come to 
appreciate. There are a few variables near the top of the script that 
you might want to change (like TMPDIR, DUMPDIR, and KEEP). This script 
requires database access by a user with "root-like" database 
permissions, so I have it look for a copy of .my.cnf that has a user 
configured with those elevated privileges (see line 76).

The backup script uses mysqldump(8) to create a backup of ALL the 
databases, not just Rivendell. It creates two backup files for each 
database: one with all the data, and a second file with just the schema 
for the databases. I've never had do use the schema, but it seemed like 
a useful thing to have when I wrote it.

I've also attached the old rd_backup script to this message for your 
reference. My "database-backup" script does fundamentally the same thing 
as the attached, just in a more convoluted manner... :)

Hope this helps!

   ~David Klann
#!/bin/bash

# rd_backup
#
# Dump the local Rivendell database and copy the dump to one or more 
# remote hosts.
#
# Copyright (C) 2006,2016 Fred Gleason 
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License version 2 as
#   published by the Free Software Foundation.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public
#   License along with this program; if not, write to the Free Software
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

#
# Site Settings
#
SITE_ID="kgu"
SHELF_LIFE=7
DB_NAME=Rivendell
DB_USER=root
DB_PASSWORD=letmein
BACKUP_DIR=/home/salem/rd_backup

#
# Generate the backup filename
#
BACKUP_FILE=`date +$BACKUP_DIR/$SITE_ID-%Y%m%d.sql`

#
# Dump the database
#
mysqldump --opt -u $DB_USER -p$DB_PASSWORD $DB_NAME > $BACKUP_FILE

#
# Purge old backups
#
find $BACKUP_DIR -mtime +$SHELF_LIFE -type f -exec rm \{\} \;

#
# Copy to remote hosts
#
# Customize this section to list the remote hosts you wish to copy the
# dump to.  Yoou will need two lines for each host:  one to copy the data,
# and another to purge old data.
#
# For example, let's say you have a host called 'rivendell.example.com',
# where you want to put the backups into a directory called 
# '/home/salem/rdbackup'.  You would do:
#
#   scp -q $BACKUP_FILE sa...@rivendell.example.com:rd_backup/
#   ssh salem@rdkaim "find /home/salem/rd_backup -mtime $SHELF_LIFE -type f 
-exec rm \{\} \;"
#
#
# Note that the remote machine must be set up to accept automatic logins via
# ssh(1) in order for this to work!
#



# End of rd_backup
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Automating live reads

2020-08-04 Thread Mark Murdock
Is there a way to use a macro and put it in the schedule to bring up a live 
read script in an editor for an on-air personality?

Thanks,

Mark Murdock
KAMB
90 E. 16th St.
Merced, CA 95340
(209) 723-1015
m...@celebrationradio.com
Website

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev