Title: Zip the WordPress folder on Linux Server
Last modified: August 18, 2016

---

# Zip the WordPress folder on Linux Server

 *  [jpepper](https://wordpress.org/support/users/jpepper/)
 * (@jpepper)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/zip-the-wordpress-folder-on-linux-server/)
 * Sorry. This is a little off topic I think. I’m wondering how I can zip (gzip?)
   the whole WordPress directory on my server. I was having trouble downloading (
   FTP) all the separate files yesterday, so I thought it would be easier (and quicker?)
   if I zipped the whole directory via SSH and then downloaded the zipped file via
   FTP? Further, what is the command to unzip the files once I move them to a different
   server. Will the unzipped files retain the same permissions? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/zip-the-wordpress-folder-on-linux-server/#post-261847)
 * My host provider has a button that allows me to gzip a file/directory. If you
   have command line access you should be able to type: gzip -h to see the switches
   you have available.
 *  [skippy](https://wordpress.org/support/users/skippy/)
 * (@skippy)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/zip-the-wordpress-folder-on-linux-server/#post-261849)
 * Gzip generally only operates on a single file; so what you do is `tar` the directory
   and then `gzip` the tar file:
 * `tar zcvf /path/to/backup.tar.gz /path/to/source`
 *  Thread Starter [jpepper](https://wordpress.org/support/users/jpepper/)
 * (@jpepper)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/zip-the-wordpress-folder-on-linux-server/#post-261873)
 * Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Zip the WordPress folder on Linux Server’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [jpepper](https://wordpress.org/support/users/jpepper/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/zip-the-wordpress-folder-on-linux-server/#post-261873)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
