Specifications
20-2 File Management Commands
backup
CreatesanarchiveofRoamAboutsystemfilesandoptionally,userfile,inUnixtapearchive(tar)
format.
Syntax
backup system [tftp:/ip-addr/]filename [all | critical]
Parameters
Defaults
Thedefaultisall.
Mode
Enabled.
Usage
YoucancreateanarchivelocatedonaTFTPserverorintheswitch’snonvolatilestorage.Ifyou
specifyaTFTPserveraspartofthefilename,thearchiveiscopieddirectlytotheTFTPserverand
notstoredlocallyontheswitch.
Usethecriticaloptionifyouwantto
backuporrestoreonlythesystem‐criticalfilesrequiredto
operateandcommunicatewiththe switch.Usethealloptionifyoualsowanttobackuporrestore
WebAAApages,backupconfigurationfiles,imagefiles,and anyotherfilesstoredintheuserfiles
areaofnonvolatilestorage.
Themaximumsupportedfilesizeis32 MB.Ifthefilesizeofthetarballistoolarge,delete
unnecessaryfiles(suchasunneededcopiesofsystemimagefiles)andtryagain,orusethecritical
optioninsteadofthealloption.
Neitheroptionarchivesimagefilesoranyotherfileslisted
intheBootsectionofdircommand
output.Thealloptionarchives imagefilesonlyiftheyarepresentintheuserfilesarea.
Archivefilescreatedbythealloptionarelargerthanfilescreatedbythecriticaloption.Thefile
sizedependsonthe filesintheuserarea,
andthefilecanbequitelargeiftheuserareacontains
imagefiles.
Thebackupcommandplacesthebootconfigurationfileintothearchive.(Thebootconfiguration
fileistheConfiguredbootconfigurationintheshowbootcommand’soutput.)Iftherunning
configurationcontainschangesthathavenotbeensaved,
thesechangesarenotintheboot
configurationfileandarenotarchived.Tomakesurethearchivecontainstheconfigurationthatis
currentlyrunningontheswitch,usethesave configcommandtosavetherunningconfiguration
tothebootconfigurationfile,before usingthebackupcommand.
[tftp:/ip‐addr/
]
filename
Nameofthearchivefiletocreate.Youcanstorethefilelocallyinthe
switch’snonvolatilestorageoronaTFTPserver.
all Backsupsystemfilesandallthefilesintheuserfilesarea.
Theuserfilesareacontainsthesetoffileslistedinthefilesection
ofdir
commandoutput.
critical Backsupsystemfilesonly,includingtheconfigurationfileusedwhen
booting,andcertificatefiles.Thesizeofanarchivecreatedbythisoptionis
generally1MBorless.