The operational "> file archive" Junos command will archive files and compress them optionally.
Although the output of following command shows the current working directory for the user:
Code:
user@srx-220> file archive compress source ?
Possible completions:
<source> Path of directory to archive
COS-config.conf Size: 151632, Last changed: Apr 16 15:30:14
The actual command does not use the same directory. Example:
user@srx-220> file archive compress source COS-config.conf destination COS-config.conf.tgz
/usr/bin/tar: COS-config.conf: Cannot stat: No such ...