A
A
Anton2017-06-27 14:05:26
linux
Anton, 2017-06-27 14:05:26

How to zip a directory over SSH excluding some subfolders?

You need to make an archive of the site directory on the server, but do not touch the content folders inside it, which weigh a lot, a kind of minus from the selection. Is this real?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vyrkmod, 2017-06-27
@Eridani

tar -zcvf mein_dir.tar.gz --exclude mein_dir/images --exclude mein_dir/.htaccess mein_dir

Or something like that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question