LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-23-2006, 12:15 PM   #1
ctkroeker
Senior Member
 
Registered: May 2005
Posts: 1,565
Blog Entries: 1

Rep: Reputation: 50
tar problems


I'm trying to tar my remote home directory from my server, but it always results in a 10kb file, whereas I have several GB in the directory.
Here is the command I'm using:
Quote:
ssh kroekerhome@192.168.0.120 tar -cvf /tmp/backup.tar /home/kroekerhome/ --exclude= "/home/kroekerhome/.Trash" --exclude= "/home/kroekerhome/.wine" --exclude= "/home/kroekerhome/Desktop/Presentations"
 
Old 11-23-2006, 12:25 PM   #2
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Rep: Reputation: 30
try with this:
/home/kroekerhome
instead of
/home/kroekerhome/
 
Old 11-23-2006, 12:38 PM   #3
ctkroeker
Senior Member
 
Registered: May 2005
Posts: 1,565

Original Poster
Blog Entries: 1

Rep: Reputation: 50
Quote:
Originally Posted by ygloo
try with this:
/home/kroekerhome
instead of
/home/kroekerhome/
No diff. I'm thinking it might have to do something with the "" or the --exclude maybe?

Last edited by ctkroeker; 11-23-2006 at 12:40 PM.
 
Old 11-23-2006, 12:43 PM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
The way you copied and pasted it shows that it has white space. Maybe that is one reason??? I don't think tar concatenates.
 
Old 11-23-2006, 12:51 PM   #5
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Rep: Reputation: 30
try it without ",
when i use --exclude option i put it before source directory...
tar -cvpf file.tar --exclude=/dir/dir /dir

what tar prints out after executing??

Last edited by ygloo; 11-23-2006 at 12:53 PM.
 
Old 11-23-2006, 01:01 PM   #6
ctkroeker
Senior Member
 
Registered: May 2005
Posts: 1,565

Original Poster
Blog Entries: 1

Rep: Reputation: 50
Quote:
Originally Posted by ygloo
try it without ",
when i use --exclude option i put it before source directory...
tar -cvpf file.tar --exclude=/dir/dir /dir

what tar prints out after executing??
Try that and after that it just goes back to the command line. It doesn't print anything after changing it, as it didn't before. Makes no diff if I put the --exclude before or after the source.
BTW, when I remove the --exclude and add "" around the command (not the address, just what comes after), it works. So I think I need ""... but I don't know how to use them cause the --exclude addresses are already using them...

Last edited by ctkroeker; 11-23-2006 at 01:06 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 10:55 AM
installation problems with libxml2-2.2.66.tar.gz and libxml2-devel2-2.6.20-3.tar.gz g-string 3 Linux - Software 6 11-24-2005 11:39 AM
problems with tar ruben0076 Linux - Software 1 04-16-2005 12:21 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:24 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