28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

See Also<br />

Recipe 1.19<br />

1.21 Restoring a Backed-Up Filesystem<br />

Problem<br />

You want to restore a filesystem that you backed up by taking a snapshot.<br />

Solution<br />

First, reboot the router from the alternate boot media to which you saved the snapshot.<br />

On M-series and T-series routers, this is the hard disk:<br />

aviva@RouterA> request system software reboot media disk<br />

On J-series routers, this is either a removable compact flash card or a device connected<br />

to the router’s USB port:<br />

aviva@RouterA> request system software reboot media removable-compact-flash<br />

or<br />

aviva@RouterA> request system software reboot media usb<br />

Then, retake the snapshot to copy the filesystem to the media from which you didn’t<br />

boot:<br />

or<br />

aviva@router1> request system snapshot<br />

aviva@RouterA> request system snapshot media removable-compact-flash<br />

<strong>Discussion</strong><br />

The procedure for returning to a snapshot filesystem backup is very straightforward.<br />

You boot the router from the alternate media and then run the snapshot command<br />

again, which copies the filesystem from the alternate media to the media from which<br />

you didn’t boot. M-series and T-series routers normally boot from the internal flash<br />

drive, and the hard disk is the alternate boot media. J-series routers also normally<br />

boot from an internal flash drive, and the alternate boot media is a compact flash<br />

card that is either installed in the router’s compact flash drive or in a USBdevice connected<br />

to the router.<br />

See Also<br />

Recipes 1.19 and 1.20<br />

48 | Chapter 1: Router Configuration and File Management<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!