I'm trying to create backups of my USB key. For that, I'd need to zip the content of my USB key (/Volumes/<USB KEY NAME>/
). I have this code for the moment
zip -r /Volumes/<USB KEY NAME>/*
That seems to work, except the fact that when I extract my archive, I get :
(For simplfication purpose (and laziness), <USB KEY NAME>+(<DATE>).zip
is Archive.zip
)
Archive.zip
-> Volumes
-> <USB KEY NAME>
-> <USB KEY CONTENT>
-> ...
How to get just :
Archive.zip
-> <USB KEY NAME>
-> <USB KEY CONTENT>
-> ...
I know it's something about absolute/relative paths but that's all I know. How could I do this ?
PS : I'm on MacOS