User Tools

Site Tools


uphp:functions:nvram_backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
uphp:functions:nvram_backup [2017/05/11 09:02]
admin created
uphp:functions:nvram_backup [2021/09/13 05:57] (current)
Line 1: Line 1:
 ======nvram_backup====== ======nvram_backup======
  
-<badge>WMPRO, WMMINI FW >= 1.1015</badge> <badge>WMMEGA FW >= 2.0</badge>+<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Backup the contents of non-volatile RAM (NVRAMto a file on the SD Card+Backup the contents of <tooltip title="Non-Volatile RAM">NVRAM</tooltip> to a file on the SD Card
  
 ====Description==== ====Description====
  
 <well size="sm"><html> <well size="sm"><html>
 +<span style="font-size:125%;color:green">int
 <span style="color:black">nvram_backup ( <span style="color:black">nvram_backup (
 <span style="color:green">string <span style="color:green">string
Line 16: Line 17:
 ====Parameter==== ====Parameter====
  
-<html><b><span style="color:blue">$filename<span style="color:black"></b></html>:  Full path and file name to store data+<html><b><span style="color:blue">$filename<span style="color:black"></b></html>:  Full path and file name for where to store the <tooltip title="Non-Volatile RAM">NVRAM</tooltip> data
  
 ====Return Values==== ====Return Values====
  
-<html><b><span style="color:green">int<span style="color:black"></b></html>:  number of bytes written or 0 if unsuccessful+<html><b><span style="color:green">Integer<span style="color:black"></b></html> number of bytes writtenor 0 if unsuccessful
  
 ====Example==== ====Example====
Line 29: Line 30:
   if ($res > 0) {   if ($res > 0) {
     print("NVRAM Backup File Size: ".$res);     print("NVRAM Backup File Size: ".$res);
-  } else print("Backup failed.");+  } else 
 +    print("Backup failed."); 
 +  }
 ?> ?>
 </code> </code>
 +
 ====See Also==== ====See Also====
  
-[[md5_restore()]] - Restore NVRAM contents from a file</html>+[[nvram_restore()]] - Restore the contents of <tooltip title="Non-Volatile RAM">NVRAM</tooltipfrom a file
uphp/functions/nvram_backup.1494493352.txt.gz · Last modified: 2021/09/13 05:56 (external edit)