LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Create .tar.gz file (https://www.linuxquestions.org/questions/linux-newbie-8/create-tar-gz-file-4175464480/)

r00ster 06-02-2013 01:12 PM

Create .tar.gz file
 
I want to back Squeeze files prior to upgrade to Wheezy.

I keep getting an empty folder when I try to create backup files to Desktop prior to copying to CD.
Code:

/home/rooster/Desktop/backup-sqboot# ls -al
total 8
drwxr-xr-x 2 rooster rooster 4096 Jun  2 11:16 .
drwxr-xr-x 8 rooster rooster 4096 Jun  2 11:16 ..

I created a folder on Desktop "/backup-sqboot.tar.gz". The command I used was
Code:

/home/rooster/Desktop# tar -cvpzf /backup-sqboot.tar.gz /boot
What am I doing wrong?

jdkaye 06-02-2013 02:42 PM

The command you give would create a backup of the contents of the /boot folder and place it in a file called backup-sqboot.tar.gz and put that file just under root (/). Neither your source nor destination has anything to do with Desktop. backup-sqboot.tar.gz is a file not a folder.
jdk

r00ster 06-03-2013 05:17 AM

Quote:

Originally Posted by jdkaye (Post 4964162)
The command you give would create a backup of the contents of the /boot folder and place it in a file called backup-sqboot.tar.gz and put that file just under root (/). Neither your source nor destination has anything to do with Desktop. backup-sqboot.tar.gz is a file not a folder.
jdk

Gotcha! Thanks. I should have used
Code:

# tar -cvpzf /home/rooster/Desktop/backup-sqboot.tar.gz /boot


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