Case Requirement: I wanted to download only the PHP files in the existing folder structure leaving all the images, js and other folders.
Zip Command
zip -R onlyphp.zip '*.php'
Zip command to Download PHP and HTML Files.
zip -r foo website_folder -i '*.php' '*.html' '*.js' '*.css'
Leave a Reply
You must be logged in to post a comment.