compress with the /go/compress Command

/go/compress installs the tools needed to use a compressed filesystem on the server. It installs FUSE (Filesystem in Userspace) and fusecompress, which transparently compresses files written to a mounted folder and decompresses them when they are read. A typical use is a backup folder such as /backup, where compression saves disk space. The command only installs the tools. It doesn't mount anything or change any existing folder. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Install FUSE and fusecompress
/go/compress

Examples

# Install the tools
/go/compress

# Check that fusecompress is available
command -v fusecompress

# Mount a folder with transparent compression (example from the script)
mkdir -p /backup
fusecompress -o allow_other /backup

# Mount it automatically at boot: add this line to /etc/fstab
/backup /backup fuse.fusecompress allow_other,defaults 0 0

# Unmount it
fusermount -u /backup

The mount examples are from comments in the script. The command doesn’t run them. Test them on a non-critical folder first. A FUSE filesystem uses more CPU and is slower than a native one.

Output

The command shows a progress bar titled Installing FUSE & Compressed Filesystem Tools, followed by the output of the package manager and, on RHEL-family systems, of the build.

Situation What you see
Supported system Package manager output, plus build output if fusecompress has to be compiled.
Unsupported operating system Nothing beyond the progress bar.

The command prints no summary and sets no exit code of its own, so a failed package install isn’t reported. Check the output, and confirm with command -v fusecompress.

Every run is logged with a timestamp, for example [Nov 20 09:15:02]# compress, to /var/log/go/compress.log.

See the full reference at /go/compress and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *