< Home

CLI: Example for Back Up Files

This section describes how to back up files in the storage device after you log in to the FW.

Requirements

You have already copied files to the specified directory.

Item

Data

Source file name and path hda1:/sample.txt
Destination file name and path hda1:/test/sample1.txt

Procedure

  1. Display the information about the files in the directory of the storage device.

    <FW> dir hda1:
    Directory of hda1:/
       0   -rw-       264  Oct 23 2009 10:58:16   private-data.txt
       2   -rw-       679  Oct 18 2009 17:51:41   vspcfg.zip
       3   -rw-       396  Aug 03 2009 09:58:16   hostkey
       4   -rw-       540  Aug 03 2009 09:58:23   serverkey
       13  -rw-      1717  Sep 21 2009 18:48:00   or4148.dat
       15  -rw-        23  Oct 24 2009 11:14:39   sample.txt
    <FW> dir hda1:/test/
    Directory of hda1:/test/
    0   drw-         -  Jul 12 2009 17:35:57   database
    1   drw-         -  Jul 12 2009 17:25:57   conf
    3   drw-         -  Jul 12 2009 17:32:57   log

  2. Copy files from hda1:/sample.txt to hda1:/test/sample1.txt.

    <FW> copy hda1:/sample.txt hda1:/test/sample1.txt
    Copy hda1:/sample.txt to hda1:/test/sample1.txt?[Y/N] :y
    100%  complete
    Info:Copied file hda1:/sample.txt to hda1:/test/sample1.txt...Done
    

Verification

Check whether the copied files exist in the specified directory.

<FW> dir hda1:/test/
Directory of hda1:/test/
0   drw-         -  Jul 12 2009 17:35:57   database
1   drw-         -  Jul 12 2009 17:25:57   conf
3   drw-         -  Jul 12 2009 17:32:57   log
4   -rw-        23  Oct 24 2009 11:14:39   sample1.txt
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >