Node Director
sfidirector archive
Shell Commands

Save/restore files in an Director archive file. More...

Save/restore files in an Director archive file.

Save/restore files in an Director archive file

SYNOPSIS

sfidirector archive [-r|-l] [-f file] [-a format] file|dir

DESCRIPTION

Stores, lists or extracts files in a Director archive file. Archive files can be in one of multiple formats. Use this command for manipulating archives to be used with Director, not as a replacement for true archivers like tar, zip or the like.

Options

-r
extract all files in the archive file
-l
print a list of files being in the archive file
-f
specify the file name of an existing archive file when used together with -r/-l options or of an archive file to be created. If -f option is not set, then stdin/stdout is being used.
-a
specify the archive file format. Currently, only 'Archive' and 'Zip' are supported (and used in the Director).
file|dir
the file or directory being archived. Together with -r option, the directory where files are extracted into.

EXAMPLES

sfidirector archive -f test.zip -a zip tmp
sfidirector archive -l -a zip -f test.zip