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 08-01-2015, 01:39 AM   #1
jaydul
Member
 
Registered: Sep 2012
Posts: 69

Rep: Reputation: Disabled
Question I need to backup directory.How to backup tar.gz?


I need to backup directory.How to backup tar.gz?
/etc
/root
/usr
/var

Code:
czvf etc_backup.tar.gz *
 
Old 08-01-2015, 03:56 AM   #2
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
you're missing the tar command

Code:
tar czvf etc_backup,tar.gz /etc
etc, etc...
 
1 members found this post helpful.
  


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 fails on system backup - need to backup remote web server cilbuper Linux - General 2 08-26-2014 12:28 AM
tar : how to extract only one directory from a backup ravindert Linux - Newbie 3 08-21-2013 07:12 PM
tar backup of an XP directory fof3 Linux - Newbie 2 03-31-2007 03:39 PM
tar: how to extract only one directory from a backup guarriman Linux - General 1 01-29-2007 10:35 AM
Using tar to backup a directory and subdirs n1wil Linux - General 1 08-07-2002 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration