Question says it all: I have a directory that I want to 'zip -rv' up, but the files are changing all of the time (postgres database base backup). Will this break zip, or will it continue with a warning, like rsync does?
Tar fails when it finds a file that is changed during compression. I've run a few test zips on the directory while generating file changes, and I haven't seen any errors, but that might just be 'cause I got lucky and zip had already compressed/not yet gotten to the changed files. My plan B at this point is to rsync the changing directory to a different folder and then zip the static location up, but that'll take up twice the space, and I'd like to avoid that if possible. If zip can't handle file changes during compression, is there a utility that does?
OS is centos 6, fwiw.