2.5. Converting files using cogoioctl
You can use the cogoioctl utility to do
immediate online file compression,
$ cogoioctl -R -c /mnt/cogofs/
|
The -c tells Cogofs to compress files,
the -R cause to recursively compress files in the directory
/mnt/cogofs. After compression, check this by,
$ ls -l /mnt/myfiles
-rw-r--r-- 1 user user 87301 Aug 8 10:00 myfile1.dat.cogo
-rw-r--r-- 1 user user 132852 Aug 8 10:01 myfile2.gz
-rw-r--r-- 1 user user 12035 Aug 8 10:02 myfile3.txt.cogo
$
|
Note by default, Cogofs will not compress already compressed files
like .gz files. This is controlled by the file
/etc/cogo.conf, please see Section 3.3 for
more details of file configuration and see Section 3.4 for details
of Cogofs utilities.