LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 09-07-2011, 07:01 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 443

Rep: Reputation: 31
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
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, 07:16 AM   #2
Nylex
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, 08:40 AM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 443

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


Reply


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 02:53 AM
cannot stat /etc/X11/X (no such file or directory) theabyyss Linux - Software 2 02-12-2008 07:15 PM
error: stat of /var/log/ppp/connect-errors failed: No such file or directory Niceman2005 Linux - Newbie 0 01-20-2005 12:29 AM
lsattr: no such file or directory while trying to stat... acampbell Linux - General 6 12-01-2003 02:41 PM


All times are GMT -5. The time now is 03:16 AM.

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