I am trying to zip or tar all the files and subdirectories in current directory and save it to the file I am zipping. The problem is that -x shitch does not work - files are being zipped and saved to a random-named file.
zip -r backup.zip ./* -x backup.zip
This is what I tried but the code did not work properly.
Is there any way to do this without saving the archive .. directory and then moving it back to the ./ dir?
Thanks in advance.