tar.gz: Cannot stat: No such file or directory
I tried to backup my site, but failed.
PHP Code:
|
You need to put the filename directly after the -f option, i.e.
tar -zcpf mybackup.tar.gz my-site Also, you probably shouldn't use the PHP code tags, since the text is blue and it can be difficult to read against the blue background. |
Nylex/ Thanks a lot!
It works! |
Remove - from vcfz options. tar does not need hyphen for options.
With a hyphen, the argument for the -f option is z. So the command is in effect trying to archive dvr_rdk_v1.tar.gz and dvr_rdk into an archive called z. Without the hyphen, the semantics of the options changes, so that the next argument on the command line, i.e. your archive's filename, becomes the argument to the f flag. Also check your write permission to the directory from which you are executing the command. |
All times are GMT -5. The time now is 04:34 AM. |