<?xml version="1.0"?>
<ices>
	<background>0</background>
	<realtime>0</realtime>
	<user>ices</user>
	<logpath>/var/log/ices2</logpath>     <!-- where log goes. -->
	<logsize>2048</logsize>     <!-- the size the log has to get to before cycling -->
	<logfile>ices_backup.log</logfile>
	<loglevel>1</loglevel>      <!-- 1=error,2=warn,3=info,4=debug -->
	<consolelog>0</consolelog>  <!-- logfile is ignored if this is set to 1 -->
	<pidfile>/var/run/ices_backup.pid</pidfile> <!-- file to write process id to -->

	<stream>
        <!-- global settings for all streams - optional-->
        <name>reboot.fm backup stream</name>
        <genre>radio</genre>
        <description>low quality backupstream from reboot.fm</description>

	<!-- input module -->
        <!-- This example uses the 'oss' module. It takes input from the -->
        <!-- oss audio device (i.e. line-in), and processes it for live -->
        <!-- encoding. If metadatafilename is set then at start and on USR1 -->
        <!-- the file is read and the comments are added into the stream -->
		<input>
			<module>jack</module>
			<param name="channels">2</param>
			<param name="clientname">backup.rec</param>
		</input>
        <runner>
            <instance>
		<shout>
			<hostname>localhost</hostname>
			<port>8000</port>
			<password>hack4me</password>
			<mount>/decoder.ogg</mount>
		</shout>
                <resample>
                    <out-rate>22050</out-rate>
                </resample>
                <!-- stereo->mono downmixing, enabled by setting this to 1 - optional -->
                <downmix>1</downmix>
                <!-- Live encoding/reencoding: -->
                <encode>  
                    <quality>0</quality>
                </encode>
                <savestream>
                    <!-- filename expansion, look at strftime for details -->
                    <filename>/home/music/backup.rec/%Y-%m-%d/%Y-%m-%d_%H.%M.%S.ogg</filename>
                    <!-- file creation mask,  eg 0644 -->
                    <fmask>0644</fmask>
                    <!-- directory creation mask -->
                    <dmask>0755</dmask>
                    <!-- seconds to record, 0 disables, defaults to 1 hour -->
                    <duration>7200</duration>
                    <!-- switch file on stream change --> 
                    <on-metadata>1</on-metadata>
                    <!-- Normally on switchover from a duration timeout, the
                         timecode is reset, needed for some players, but disabling
                         this prevents modification -->
                    <reset-time>0</reset-time> 
                </savestream>
            </instance>
        </runner>
	</stream>
</ices>

