Znyx Networks bh5700 Manuale Utente

Pagina di 359
zsync
NAME
zsync
 − 
Saves changes to the flash.
SYNOPSIS
zsync [-c][-f][<dir_or_file>]
zsync [-c][-f][-t <file>]
zsync [-c][-f][-z]
zsync [-c][-l]
DESCRIPTION
zsync is used to save a snapshot of the current file system to flash ROM.  By default, zsync 
creates a compressed tar image of the files that have changed and saves the image in the flash 
ROM. The saved image is expanded on reboot.  The saved compressed tar image is called an 
“overlay”.
If a directory parameter is given to zsync, the contents of the directory are saved instead of 
searching for updated files. The specific purpose of the <directory> parameter is for saving 
files that have been mounted with zmnt.  Using the -t option allows a tar image created by 
zmnt
 -t
 to be saved.
To correct a corrupted file that is saved to flash ROM with zsync, first reboot with the -i 
option (see Switch Maintenance). Use zmnt to put the corrupted file in the /mnt directory, open 
and correct the file, then  zsync to the /mnt directory to save your changes and reboot.
There are two overlay areas: dynamic and custom.  The dynamic overlay is the default.  The 
custom overlay is used to create base configurations that are different then the base configuration. 
The custom overlay is written by using the -c option.
The -z option zeros the overlay area, returning the switch to the factor configuration.
Specific files or directories can be excluded from saving to flash by zsync by including an entry 
in /etc/exclude. Likewise, existing entries in  /etc/exclude such as /tmp can be removed 
in order to save those files to flash with zsync.
Ethernet Switch Blade User's Guide
release  3.2.2j
page  341