samedi 27 décembre 2014

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



Aucun commentaire:

Enregistrer un commentaire