User Tools

Site Tools


uphp:functions:nvram_backup

nvram_backup

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Backup the contents of NVRAM to a file on the SD Card

Description

int nvram_backup ( string $filename )

Parameter

$filename: Full path and file name for where to store the NVRAM data

Return Values

Integer number of bytes written, or 0 if unsuccessful

Example

<?
  $res=nvram_backup("/mybackup.dat");
  if ($res > 0) {
    print("NVRAM Backup File Size: ".$res);
  } else {
    print("Backup failed.");
  }
?>

See Also

nvram_restore() - Restore the contents of NVRAM from a file

uphp/functions/nvram_backup.txt · Last modified: 2021/09/13 05:57 (external edit)