LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I need to backup directory.How to backup tar.gz? (https://www.linuxquestions.org/questions/linux-newbie-8/i-need-to-backup-directory-how-to-backup-tar-gz-4175549525/)

jaydul 08-01-2015 01:39 AM

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 *

goumba 08-01-2015 03:56 AM

you're missing the tar command

Code:

tar czvf etc_backup,tar.gz /etc
etc, etc...


All times are GMT -5. The time now is 03:46 PM.