Zip - specifying source files directory
Posted: Fri May 17, 2013 8:30 am
HI all,
from current dir so lets say /home/pi/
I want to zip the whole dir in /home/pi/share/FSD/20130516
into /var/www/
with the name FSD_20130516.zip
pi@RaspberryPi ~ $
that would make the FSD_20130516.zip in the /var/www/ dir as I want it,
but the ZIP files included folders /home/pi/share/FSD/20130516 as well
Is there a way to specify source directory for the zip file?
man zip does not have the info
from current dir so lets say /home/pi/
I want to zip the whole dir in /home/pi/share/FSD/20130516
into /var/www/
with the name FSD_20130516.zip
pi@RaspberryPi ~ $
Code: Select all
zip -rT /var/www/FSD_20130516 /home/pi/share/FSD/20130516
but the ZIP files included folders /home/pi/share/FSD/20130516 as well

Is there a way to specify source directory for the zip file?
man zip does not have the info
