Compressing wp-content Folder Using Linux Command Line

Compressing wp-content Folder Using Linux Command Line (ZIP & TAR.GZ Guide)

To compress the wp-content folder via terminal, use one of the following commands depending on your preferred archive format:

๐Ÿ”น To compress as .zip:

bash
zip -r wp-content.zip wp-content

๐Ÿ”น To compress as .tar.gz (recommended for Linux):

bash
tar -czvf wp-content.tar.gz wp-content

๐Ÿ”น To compress as .tar (uncompressed tarball):

bash
tar -cvf wp-content.tar wp-content

These commands should be run from the directory containing the wp-content folder.
Let me know if you want to exclude any subfolders or files.

Loading

Leave a Reply

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