LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-02-2013, 01:12 PM   #1
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Rep: Reputation: 15
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?

Last edited by r00ster; 06-02-2013 at 01:22 PM.
 
Old 06-02-2013, 02:42 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
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
 
Old 06-03-2013, 05:17 AM   #3
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jdkaye View Post
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
 
  


Reply



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
How can i create .tar.gz,.tar.bz2,.zip file and upload with filezilla=> uncompress? cola Linux - General 1 09-14-2011 01:32 PM
[SOLVED] Using tar to create bzip file linuxguy7820 Linux - Newbie 5 05-19-2011 08:48 PM
How to create a password protected tar file? shreyansh Linux - Newbie 3 06-08-2010 01:50 AM
Create file using tar and ls commands Ejdaha Linux - Newbie 2 02-16-2009 08:55 AM
how to create a tar.gz file? fuelinjection Linux - General 2 07-09-2004 05:22 AM

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

All times are GMT -5. The time now is 02:01 PM.

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