<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scheduling / automating APIC-EM backups in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/scheduling-automating-apic-em-backups/m-p/3465452#M1150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a script that will work when initiated by crontab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#!/bin/sh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Set variables&lt;/P&gt;&lt;P&gt;FTPHOST='10.255.0.100'&lt;/P&gt;&lt;P&gt;FTPUSER='anonymous'&lt;/P&gt;&lt;P&gt;FTPPASSWD='network'&lt;/P&gt;&lt;P&gt;FTPDIR='APIC-EM/Backups/usspvlapic01'&lt;/P&gt;&lt;P&gt;FILE='*.backup'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Create Backup&lt;/P&gt;&lt;P&gt;/opt/cisco/grapevine/bin/grape backup grow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Wait 10 minutes for backup to complete&lt;/P&gt;&lt;P&gt;sleep 10m&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Change to backup repository&lt;/P&gt;&lt;P&gt;cd /srv/grapevine/replicated-storage/backups/*005056b40bcd/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# FTP backup file to external FTP server&lt;/P&gt;&lt;P&gt;ftp -in $FTPHOST &amp;lt;&amp;lt;END_SCRIPT&lt;/P&gt;&lt;P&gt;quote USER $FTPUSER&lt;/P&gt;&lt;P&gt;quote PASS $FTPPASSWD&lt;/P&gt;&lt;P&gt;bin&lt;/P&gt;&lt;P&gt;cd $FTPDIR&lt;/P&gt;&lt;P&gt;mput $FILE&lt;/P&gt;&lt;P&gt;quit&lt;/P&gt;&lt;P&gt;END_SCRIPT&lt;/P&gt;&lt;P&gt;exit 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All that needs to be customized are the variables and the directory on the APIC-EM server where the backups are stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2017 12:51:44 GMT</pubDate>
    <dc:creator>javerill</dc:creator>
    <dc:date>2017-10-11T12:51:44Z</dc:date>
    <item>
      <title>Scheduling / automating APIC-EM backups</title>
      <link>https://community.cisco.com/t5/controllers/scheduling-automating-apic-em-backups/m-p/3465448#M1146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an "easy" way to automate backups of an APIC-EM server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently running a single instance VM of APIC-EM version 1.5.0.1368.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;-Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:40:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/scheduling-automating-apic-em-backups/m-p/3465448#M1146</guid>
      <dc:creator>javerill</dc:creator>
      <dc:date>2019-03-01T12:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling / automating APIC-EM backups</title>
      <link>https://community.cisco.com/t5/controllers/scheduling-automating-apic-em-backups/m-p/3465449#M1147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That can be done using the API or CLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;API (RESTful): &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;POST: &lt;A href="https://10.122.6.150/grapevine/api/backup"&gt;&lt;SPAN style="color: #954f72;"&gt;https://[controller_ip]/grapevine/api/backup&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;CLI:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;[root@template-RH58Cluster ~]# &lt;STRONG style="background: lime;"&gt;ssh &lt;SPAN style="color: #954f72;"&gt;&lt;A href="mailto:grapevine@10.122.6.150"&gt;grapevine@1[&lt;/A&gt;controller_ip]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;&lt;A href="mailto:grapevine@10.122.6.150"&gt;&lt;SPAN style="color: #954f72;"&gt;grapevine@10.122.6.150&lt;/SPAN&gt;&lt;/A&gt;'s password:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;Welcome to the Cisco APIC-EM Appliance - Powered by Grapevine&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt; System information as of Mon Jul 10 17:02:17 UTC 2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt; System load: 2.31 Processes: 517&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt; Usage of /:&amp;nbsp;&amp;nbsp; 11.9% of 460.29GB&amp;nbsp;&amp;nbsp; Users logged in:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;&amp;nbsp; Memory usage: 84% IP address for eth0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.122.6.150&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt; Swap usage: 0% IP address for grape-br0: 169.254.0.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt; APIC-EM Version:&amp;nbsp;&amp;nbsp; 1.4.3.1009&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt; Grapevine Version: 1.4.3.4006.dev1051-g4b268d4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;Last login: Mon Jul 10 16:56:35 2017 from &lt;A href="http://wwsp-il-dhcp-076.cisco.com/"&gt;&lt;SPAN style="color: #954f72;"&gt;wwsp-il-dhcp-076.cisco.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;(grapevine)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;[Mon Jul 10 17:02:18 UTC] &lt;A href="mailto:grapevine@10.122.6.150"&gt;&lt;SPAN style="color: #954f72;"&gt;grapevine@10.122.6.150&lt;/SPAN&gt;&lt;/A&gt; (grapevine-root-1) ~&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;$ &lt;STRONG style="background: lime;"&gt;grape backup grow&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; background: yellow;"&gt;task_id: 96e80a6e-6591-11e7-b1c4-005056a90aa1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;Tip:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;Use 'grape task display &amp;lt;task_id&amp;gt;' to monitor progress of task&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 15:22:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/scheduling-automating-apic-em-backups/m-p/3465449#M1147</guid>
      <dc:creator>ymeloch</dc:creator>
      <dc:date>2017-09-20T15:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling / automating APIC-EM backups</title>
      <link>https://community.cisco.com/t5/controllers/scheduling-automating-apic-em-backups/m-p/3465450#M1148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CLI process works perfectly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 15:31:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/scheduling-automating-apic-em-backups/m-p/3465450#M1148</guid>
      <dc:creator>javerill</dc:creator>
      <dc:date>2017-09-20T15:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling / automating APIC-EM backups</title>
      <link>https://community.cisco.com/t5/controllers/scheduling-automating-apic-em-backups/m-p/3465451#M1149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A little more information.&amp;nbsp; The grape backup grow writes the file to (in my case)&amp;nbsp; /mnt/gfs_block/backups/689835e2-9e1e-11e7-ae20-005056846dbd/backup_2017-09-20_12-09-37.backup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could create a crontab job that will both create the backup and store it off the server somewhere.&lt;/P&gt;&lt;P&gt;Here is an example bash script you could automate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="font-size: 12pt;"&gt;Note:&lt;/EM&gt;&lt;/STRONG&gt; This is an untested script and I've noticed an issue with the delete function actually deleting the file but not the pointer to it in grape backup display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_15059265296364039" jivemacro_uid="_15059265296364039"&gt;
&lt;P&gt;#!/bin/sh&lt;/P&gt;
&lt;P&gt;#&lt;/P&gt;
&lt;P&gt;if [ `whoami` != grapevine ]; then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit 3&lt;/P&gt;
&lt;P&gt;fi&lt;/P&gt;
&lt;P&gt;#&lt;/P&gt;
&lt;P&gt;grape backup grow&lt;/P&gt;
&lt;P&gt;sleep 20&lt;/P&gt;
&lt;P&gt;/usr/bin/updatedb&lt;/P&gt;
&lt;P&gt;FILENAME=`grape backup display | grep filename | awk '{print $3}' | tail -n 1`&lt;/P&gt;
&lt;P&gt;LOCATION=`/usr/bin/locate $FILENAME`&lt;/P&gt;
&lt;P&gt;rsync -av $LOCATION&amp;nbsp; admin@yourIP&lt;/P&gt;
&lt;P&gt;grape backup delete $FILENAME&lt;/P&gt;
&lt;P&gt;exit 0&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 16:53:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/scheduling-automating-apic-em-backups/m-p/3465451#M1149</guid>
      <dc:creator>ngoldwat</dc:creator>
      <dc:date>2017-09-20T16:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling / automating APIC-EM backups</title>
      <link>https://community.cisco.com/t5/controllers/scheduling-automating-apic-em-backups/m-p/3465452#M1150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a script that will work when initiated by crontab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#!/bin/sh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Set variables&lt;/P&gt;&lt;P&gt;FTPHOST='10.255.0.100'&lt;/P&gt;&lt;P&gt;FTPUSER='anonymous'&lt;/P&gt;&lt;P&gt;FTPPASSWD='network'&lt;/P&gt;&lt;P&gt;FTPDIR='APIC-EM/Backups/usspvlapic01'&lt;/P&gt;&lt;P&gt;FILE='*.backup'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Create Backup&lt;/P&gt;&lt;P&gt;/opt/cisco/grapevine/bin/grape backup grow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Wait 10 minutes for backup to complete&lt;/P&gt;&lt;P&gt;sleep 10m&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Change to backup repository&lt;/P&gt;&lt;P&gt;cd /srv/grapevine/replicated-storage/backups/*005056b40bcd/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# FTP backup file to external FTP server&lt;/P&gt;&lt;P&gt;ftp -in $FTPHOST &amp;lt;&amp;lt;END_SCRIPT&lt;/P&gt;&lt;P&gt;quote USER $FTPUSER&lt;/P&gt;&lt;P&gt;quote PASS $FTPPASSWD&lt;/P&gt;&lt;P&gt;bin&lt;/P&gt;&lt;P&gt;cd $FTPDIR&lt;/P&gt;&lt;P&gt;mput $FILE&lt;/P&gt;&lt;P&gt;quit&lt;/P&gt;&lt;P&gt;END_SCRIPT&lt;/P&gt;&lt;P&gt;exit 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All that needs to be customized are the variables and the directory on the APIC-EM server where the backups are stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:51:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/scheduling-automating-apic-em-backups/m-p/3465452#M1150</guid>
      <dc:creator>javerill</dc:creator>
      <dc:date>2017-10-11T12:51:44Z</dc:date>
    </item>
  </channel>
</rss>

