Does anyone know what happens when you mv a file to a destination that does not have enough space? What happens to the original file? I don't think you get an error but I'm not sure.
Any recommendations on how to do this with another command that would return an error? We want to archive some audit logs to a different filesystem. This is done in a very basic script with no error checking etc. Just mv filea to /new/filea type thing. It would be nice if we could use a command that would tell us if the mv or copy was successful or perhaps if there is enough space to perform the operation.
Any help or tips is greatly appreciated.
Thanks,
yowza