Juzhax Technology

lftp command for mirroring FTP

What this command does © juzhax.com The historical example uploads a local directory to a remote server using reverse mirroring. Plain FTP is not encrypted, and credentials supplied on the command line can be exposed in history or process listings. Prefer SFTP or properly configured FTPS, use securely managed credentials and a trusted host, and Continue reading “lftp command for mirroring FTP”

Script for optimizing images in a directory (recursive) in Linux

Safety update © juzhax.com The original 2013 script below is retained for reference, not recommended for unattended use. Its unquoted file iteration breaks on whitespace, shared temporary filenames can collide, and metadata removal can discard orientation or color information. Work on a backup, use null-delimited file iteration and unique temporary files, retain necessary metadata, and Continue reading “Script for optimizing images in a directory (recursive) in Linux”