Skip to main content
thank you for not wasting our time having to read unnecessary and unwanted thanks
Source Link
Anthon
  • 81.4k
  • 42
  • 174
  • 228

How can iI compress a directory content without compress the full path folder structure too.

I am using this command to zip ana folder content under var/www/ directory, but when iI unzip the application.zip iI got a 2 level folder structure

/var/www/my important files

zip -r /var/appbackup/application.zip /var/www/

I would like to keep only files without "var" and "www" folders. How can iI do that.

Thank you advance?

How can i compress a directory content without compress the full path folder structure too.

I am using this command to zip an folder content under var/www/ directory, but when i unzip the application.zip i got a 2 level folder structure

/var/www/my important files

zip -r /var/appbackup/application.zip /var/www/

I would like to keep only files without "var" and "www" folders. How can i do that.

Thank you advance

How can I compress a directory content without compress the full path folder structure too.

I am using this command to zip a folder content under var/www/ directory, but when I unzip the application.zip I got a 2 level folder structure

/var/www/my important files

zip -r /var/appbackup/application.zip /var/www/

I would like to keep only files without "var" and "www" folders. How can I do that?

Source Link

How to zip folder content on Ubuntu without keep the folder structure(path)

How can i compress a directory content without compress the full path folder structure too.

I am using this command to zip an folder content under var/www/ directory, but when i unzip the application.zip i got a 2 level folder structure

/var/www/my important files

zip -r /var/appbackup/application.zip /var/www/

I would like to keep only files without "var" and "www" folders. How can i do that.

Thank you advance