ONTAP Discussions

Anyone have config-backup-upload via OnTAP API working ?

akitsen
2,293 Views

I'm trying to pull the most recent configuration backup from my clustered netapp.

 

7mode allows you to do a simple 'config dump' but looks like its a bit trickier to get for CDOT.

 

Does anyone have experience/knowledge on pulling CDOT config backup files via the API ?

 

Thank you.

3 REPLIES 3

Saurabh_Bhattarai
1,214 Views

Did you get any traction on this? Is it possible to upload Cdot Netapp config via API. I don't want to use webserver or ftp server and want to directly upload to a local machine.

ahmada
1,178 Views

Back in the days I did something to save the backup file to a volume, then the volume was backed up to tape. I used the following commands

 

set diagnostic

systemshell -node NAPP12 -command sudo cp -rf /mroot/etc/backups/config/NAPP_Cluster2.8hour.2023-03-22.18_15_00.7z /clus/SVM1/cluster_backup/


and from powershell it was something like : -

Connect-NcController ClusterDNSname

$file = Get-NcConfigBackup |Sort-Object -Descending created|Select-Object -First 1

$cmd = "set diag -confirmations off;systemshell -node cluster1-01 -command sudo cp -rf /mroot/etc/backups/config/"+$file.backupname+" /clus/Svm1/cluster_backup/"

 

invoke-ncssh $cmd

chenguanghui
145 Views

hello:

     extract the configuration file  backup in CDOT  which can only be upload to a remote server using http,ftp,tftp,tftps,and then download locally.

 The following article is the basic concept and operation steps

https://docs.netapp.com/zh-cn/ontap/system-admin/config-backup-file-concept.html

Public