Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-07-2011, 08:01 AM   #1
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
tar.gz: Cannot stat: No such file or directory

I tried to backup my site, but failed.

PHP Code:
tar -zcfp mybackup.tar.gz my-site
tar.gzCannot statNo such file or directory 
What is wrong?
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-07-2011, 08:16 AM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.
2 members found this post helpful.
Old 09-07-2011, 09:40 AM   #3
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Nylex/ Thanks a lot!
It works!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tar problem; Cannot stat: No such file or directory rn-pro Programming 3 10-07-2010 03:53 AM
cannot stat /etc/X11/X (no such file or directory) theabyyss Linux - Software 2 02-12-2008 08:15 PM
error: stat of /var/log/ppp/connect-errors failed: No such file or directory Niceman2005 Linux - Newbie 0 01-20-2005 01:29 AM
lsattr: no such file or directory while trying to stat... acampbell Linux - General 6 12-01-2003 03:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration