<div dir="ltr"><div>I am still having an issue understanding how to properly get patches from a test/dev environment to a prod environment.</div><div><br></div><div>I currently have an environment called Test/Dev with an activation key. I then created a base channel and the underlying child channels. I have set it to sync to repositories the first of the month.</div><div><br></div><div>That works fine. But then I have an Production environment with an activation key. I created a base channel and child channels for that also. How do I get it so when I run a script production just becomes a copy of Test/Dev downloads as of the point I run the script? I modified a script below but it doesn't seem to do anything.</div><div><br></div><div>What is the proper way to set it up so the beginning of the month Test/Dev is synced (which is happening), then a week later unless something is wrong just sync Test/Dev to Prod?</div><div><br></div><div>#!/bin/sh</div><div># clone-prod.sh - Clone CentOS7-64 and RHEL 5-32 and 64 base and selected child <br># channels current as of the first of this month.  Production systems will<br># update themselves from these cloned channels.</div><div>date</div><div># Protect the login info for the Satellite server.<br># The file referenced below needs two lines:<br># USER={SatelliteAdminUser}<br># PASS={SatelliteAdminPassword}<br># Be sure to chmod it to 700 so it's only visible to root.</div><div>. /var/www/html/pub/mylocalscripts/includes/satellite-login.conf</div><div>##THIS_MONTH="06"   # A couple months old for debugging<br>THIS_MONTH=$(date +%m)<br>THIS_YEAR=$(date +%Y)</div><div>echo "$(date) Cloning as of $THIS_YEAR-$THIS_MONTH-01"</div><div>echo "$(date) Cloning CentOS 7 64 bit base channel"<br>spacewalk-clone-by-date -y \<br>    -d "$THIS_YEAR-$THIS_MONTH-01" \<br>    -u $USER -p $PASS \<br>    --channels=centos7-base-testdev-x86_64 centos7-base-prod-x86_64<br>echo "$(date) Finished cloning CentOS 7 base channel"</div><div>echo "$(date) Cloning CentOS 7 64 bit child channels"<br>spacewalk-clone-by-date -y \<br>    -d "$THIS_YEAR-$THIS_MONTH-01" \<br>    -u $USER -p $PASS \<br>    --parents=centos7-base-testdev-x86_64 centos7-base-prod-x86_64 \<br>    --channels=centos7-epel-testdev-x86_64 centos7-epel-prod-x86_64 \<br>    --channels=centos7-extras-testdev-x86_64 centos7-extras-prod-x86_64 \<br>    --channels=centos7-spacewalkclient-testdev-x86_64 centos7-spacewalkclient-prod-x86_64 \<br>    --channels=centos7-updates-testdev-x86_64 centos7-updates-prod-x86_64<br>echo "$(date) Finished cloning CentOS 7 64 bit child channels"<br>echo ""</div></div>