02-13-2022 03:11 AM - edited 02-13-2022 03:12 AM
Hi Experts ,
Can we export the configuration snapshot file using winscp ?
I have configured a tenant with name SAROVANI ..now I have taken the snapshots as shown in below ...But I am unable to export the file to my local machine ..
Can I export these file using winscp ? if yes , what will be the path ?
02-13-2022 12:11 PM - edited 02-13-2022 08:51 PM
Hi @Network_Sarovani ,
You can't (AFAIK) copy the snapshot from the APIC as simply as that. [edit: See @Sergiu.Daniluk 's reply below for a more knowledgeable view about this]
BUT you can set up your PC to be the target of the snapshot process. But you need to run a FTP server (such as FileZilla FTP server) on your PC
Name: MyPC_FTP.Loc
Host Name (or IP address): <IP Address of your PC - if using DevNet sandbox, your VPN IP>
Protocol: ftp
Username: <Whatever you set up on your FTP Server>
Password: <Whatever you set up on your FTP Server>
Name: MyFavourite_ConfigExportPol
Format: JSON
Start Now: Yes
Export Destination: MyPC_FTP.Loc. (As specified above)
Confirm the backup Job ran successfully and file has been uploaded to your local PC
The backup will be a tarball in gzip format, so you'll have to unzip it then un-tar it. I run macOS, so I have built in commands to do this, on a Windows PC you'll probably need a 3rd party app to do this.
02-13-2022 08:43 PM
Though I recommend the way Chris described to collect the snapshots, you can however collect all the snapshots from APIC directly using scp (winscp tool in your case). The location of the snapshots is /data2/snapshots/
apic3# cd /data2/snapshots/ apic3# ls ce2_DailyAutoBackup-2022-02-13T09-00-16.tar.gz
ce2_defaultOneTime_tn-BCR-2021-07-19T16-40-37.tar.gz ce2_defaultOneTime_tn-BCR-2021-08-13T16-25-12.tar.gz
Cheers,
Sergiu
02-13-2022 08:50 PM
Well there you go! I just learned something new too
@Sergiu.Daniluk's answer is better than mine!
08-20-2024 02:12 AM
Hi,
I didn't find the data2 folder in the PROD APIC! can you help me? (I found it in the PREPROD APIC in different environement)
08-20-2024 04:35 AM - edited 08-20-2024 11:40 PM
Yes, you can definitely use WinSCP to export the configuration snapshot. First, log in to the server via WinSCP. The snapshot files are usually stored in directories like /var/backups/ or a specific path related to your configuration. If you’re not sure where your SAROVANI tenant saves snapshots, you might need to check the settings or the documentation for the exact path.
Once you find the right directory, you can simply drag and drop the snapshot file to your local machine using WinSCP. If the directory isn’t accessible or visible, you might need the right permissions to view or download the file. I’ve had to do that a few times—just make sure you’re in the right directory and have the necessary access rights.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide