Because business needs, want to finish the file in a command tar and delete the original files at the same time After the execution down The tar - CVZF/xx/yy/data - backup. Tar. Gz - remove files - C/aa/daily - backup/. Will/aa/daily - backup files under/all packaging and backup to xx/yy//delete the original file after
However, the execution of an error the following Tar:/aa/daily - backup/. : always rmdir: Invalid argument
Obviously I don't no will attempt to delete a folder,, can you tell me how to correct
CodePudding user response:
The tar - CVZF/xx/yy/data - backup. Tar. Gz - C/aa/daily - backup/. & amp; & Rm - rf/aa/daily backup/*