11-19-2021 12:40 AM
Hi all,
I would like to ask cli commands to restore FMCv backup via cli. Could you pls share to me?
Highly appreciate your help.
Thanks,
Su Myat Lwin
11-19-2021 02:04 AM
As per i know not possible :
Lookout restriction and Limitation :
11-19-2021 05:13 AM
I believe it is possible but I haven't done it directly. Check out sf-restore.pl in /var/sf/bin. You will need to run it as root user.
That's the script that's used when the GUI executes a restore. The FMC Migration tool uses it as well.
11-20-2021 04:43 AM
Thanks much. Marvin
I can restore FMC backup from its command line. I found this sf-restore-backup.pl file in this directory /usr/local/sf/bin.
Restore config is successful.
If we restore backup from GUI, how can we check detail progress log in CLI?
11-20-2021 06:22 AM
I see the perl script has these two references:
my $logfile = SF::Reloc::RelocateFilename("/var/log/restore.log"); my $tmpfile = SF::Reloc::RelocateFilename("/var/log/tmp.log");
I'd try watching those ("tail -f" the files during restore).
07-21-2023 04:50 AM
Hi,
I am also trying the same, sf-backup.pl -n bkpname, but its giving error of temp location.
Do we need to pass the location for the same as well, i think it should take default location /var/sf/backup.
Can you please share the syntax for the same.
//Bharat
07-21-2023 04:51 AM
Hi Marvin,
Can you please also share the syntax of backup and restore from cli, its hard to get it from Cisco documentation.
//Bharat
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