User manual
4-5
4.1.2 archive
Priv Exec Command
Use this command to manage archive files.
Syntax
archive tar /table [FILE|URL]
archive tar /create [FILE|URL] FILE
archive tar /xtract [FILE|URL] DIR
Parameters
Example
How to zip the folder flash:/log/?
RFS7000#archive tar /create flash:/out.tar flash:/log/
tar: Removing leading '/' from member names
flash/log/
flash/log/snmpd.log
flash/log/messages.log
flash/log/startup.log
flash/log/radius/
RFS7000#dir flash:/
Viewing the output tar file?
Directory of flash:/
drwx 1024 Thu Aug 17 08:25:50 2006 hotspot
drwx 120 Fri Sep 8 12:27:20 2006 log
drwx 1024 Thu Sep 7 16:23:34 2006 crashinfo
drwx 1024 Wed Aug 23 15:30:19 2006 backup
-rw- 173056 Fri Sep 8 14:39:48 2006 out.tar
Which files are tared?
RFS7000#archive tar /table flash:/out.tar
drwxrwxrwt 0/600 0 2006-09-08 12:27:20 flash/log
-rw-r--r-- 0/0 381 2006-09-08 12:27:28 flash/log/snmpd.log
-rw-r--r-- 0/0 151327 2006-09-08 14:37:26 flash/log/messages.log
-rw-r--r-- 0/0 17318 2006-09-08 12:27:29 flash/log/startup.log
drwxrwxrwt 0/600 0 2006-09-08 12:27:14 flash/log/radius
Untar fails..?
RFS7000#archive tar /xtract flash:/out.tar flash:/out/
tar: flash:/out.tar: No such file or directory
tar Manipulates (creates, lists or extracts) a tar file.
/table Lists files in a tar file.
/create Creates a tar file.
/xtract Extracts files from a tar file.
FILE Tar filename.
URL Tar file URL.