Skip to main content
FatalHalt
New Member
Sep 15, 2014 7:15 PM UTC
Solved

Backup over SCP

I' m trying to figure out how to backup over SCP. I' ve enabled ' admin-scp' in config sys global, but am now trying to actually figure out how to use it. Anyone able to get me started? Thanks.
    FatalHalt
    FatalHaltAnswer
    New Member
    Dec 1, 2014 6:04 PM UTC

    Sorry to bump this thread, but been running into some issues. 

     

    Is it just me, or are the backups you get from SCP not the full backup of the device? I've only just noticed this now that I'm doing some analytics on the files themselves, but they aren't even close to full. On one device, a full backup from the GUI gets me a file with 40,000 lines. A scp backup using sys_config is just shy of 2,200. It doesn't have any vdoms. It's almost useless. 

     

    Is there a different command other than sys_config (or fgt-config) to get a proper, full backup?

    31 replies

    emnoc
    New Member
    Dec 1, 2014 10:10 PM UTC
    Elthon_Abreu
    New Member
    Feb 23, 2015 4:59 PM UTC

    emnoc/FatalHalt

     

    Yes, the command "sys_config" is a full backup !

    I tested and compared both methods.

    ede_pfau
    SuperUser
    SuperUser
    Feb 23, 2015 5:27 PM UTC

    My mustard on this:

    I'm doing SCP backups for a couple of customer FGTs and it's both

    - just the same as 'Backup' from the Dashboard

    - NOT the full backup

     

    The files just contain the commands to transform a factoryreset config into the running config. All default settings are left out.

    And I'm not dealing with VDOMs. So if anybody knows how to elicit the config for all VDOMs on a FGT then please post.

    Elthon_Abreu
    New Member
    Feb 23, 2015 6:17 PM UTC

    ede_pfau,

     

    I'm doing backups with a script Batch (DOS) running on the Windows scheduler. It's work fine for me.

     

    Best regards.

    nbctcp
    New Member
    Mar 6, 2015 12:20 PM UTC

    Ethon,

    Can you please show me the steps

     

    elthon.abreu wrote:

    ede_pfau,

     

    I'm doing backups with a script Batch (DOS) running on the Windows scheduler. It's work fine for me.

     

    Best regards.

    emnoc
    New Member
    Feb 23, 2015 8:27 PM UTC

    Will for me the fgt-config pulls the complete configs ( full ) with vdoms.

     

    scp  <myuser>@1.1.1.1:fgt-config ./

     

    So anything with fgt-config in the name will pull the full cfg.

     

    e.g ( using fgt-config2  the 2 doesn't matter ;) )

     

     

    scp -P 2022 admin@10.10.80.1:fgt-config2 ./ admin@10.10.80.1's password: fgt-config                                    100%  371KB  37.1KB/s   00:10 

     

     

    So anything with  fgt-config or sys_config no matter what the spelling works.

     

     kfelix$ scp -P 2022 admin@10.10.80.1:custB/sys_config ./ admin@10.10.80.1's password: sys_config                                                            100%  371KB  33.7KB/s   00:11      

     kfelix$ scp -P 2022 admin@10.10.80.1:sys_config-blhblhlah  ./ admin@10.10.80.1's password: sys_config                                                            100%  371KB  37.1KB/s   00:10               

     

    Ken

    nbctcp
    New Member
    Mar 10, 2015 12:13 AM UTC

    I just done that using pscp in windows

    https://nbctcp.wordpress....kup-config-using-pscp/

     

    emnoc wrote:

    Will for me the fgt-config pulls the complete configs ( full ) with vdoms.

     

    scp  <myuser>@1.1.1.1:fgt-config ./

     

    So anything with fgt-config in the name will pull the full cfg.

     

    e.g ( using fgt-config2  the 2 doesn't matter ;) )

     

     

    scp -P 2022 admin@10.10.80.1:fgt-config2 ./ admin@10.10.80.1's password: fgt-config                                    100%  371KB  37.1KB/s   00:10 

     

     

    So anything with  fgt-config or sys_config no matter what the spelling works.

     

     kfelix$ scp -P 2022 admin@10.10.80.1:custB/sys_config ./ admin@10.10.80.1's password: sys_config                                                            100%  371KB  33.7KB/s   00:11    

     kfelix$ scp -P 2022 admin@10.10.80.1:sys_config-blhblhlah  ./ admin@10.10.80.1's password: sys_config                                                            100%  371KB  37.1KB/s   00:10            

     

    Ken

    wfli
    Staff
    Staff
    Jan 19, 2022 3:55 AM UTC

    Can backup all configurations including default configurations ?  I am using sys_config or fgt-config to include only the user's configuration, not the default configuration  

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024