LinuxQuestions.org
Visit Jeremy's Blog.
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 03-28-2005, 08:56 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
how can I make a tgz file of my home?


I want to create a tgz file of my home. I won't use a GUI app, but use the console.

I intend to make the tgz file in a smbmount I made to another computer of the windows network (I don't have any room left in my computer).

The smbmount is already made. Say it's /mnt/tmp ().

my home directory is /home/user

What is the command or command pipe to get this done?

PS
I tried to make a zip file of it, but it failed. The temp file stuck at 2.1 GBs. Is it a zip file restriction... or a remote FS restriction? The remote partition must be NTFS on XP (my home is 16 GBs).
 
Old 03-28-2005, 09:07 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
tar -cpzf /mnt/tmp/user.tgz /home/user
 
Old 03-28-2005, 09:10 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Oh.. thanks for replaying. I had just found the answer (very similar to yours):

tar zcvf /mnt/tmp/blahblah.tgz /home/user
 
Old 03-28-2005, 09:13 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
16gigs huh...you may want to use bunzip since it has slightly better compression that gunzip. You can use jtshaw's command like this:

tar -cpjf /mnt/tmp/usr.bz2 /home/user

or is it usr.tar.bz2? I can't remember off the top of my head but it doesn't really matter.
 
Old 03-28-2005, 09:15 AM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Quote:
Originally posted by eantoranz
Oh.. thanks for replaying. I had just found the answer (very similar to yours):

tar zcvf /mnt/tmp/blahblah.tgz /home/user
You want the p in there with the tar command so the permissions are saved.
 
Old 03-28-2005, 09:18 AM   #6
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Oh... that's what the p does?

Ok. will use it (for executables, cause all the files are mine... and ONLY mine).

Last edited by eantoranz; 03-28-2005 at 09:20 AM.
 
Old 03-28-2005, 09:21 AM   #7
futhark
Member
 
Registered: Nov 2003
Location: Montréal (Can)
Distribution: FC4
Posts: 110

Rep: Reputation: 15
cd /home
tar zcvf /mnt/tmp/user.tgz user

Forget this if your Windows partitions isn't NTFS. FAT32 supports 2GB files max.

Expect this to take a while:
- Compressing 16GB is long.
- Archive is created over the network.
 
Old 03-28-2005, 09:26 AM   #8
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
2.1 GBs limit in FAT32... I know.

16 GBs through the net... it's gonna take a while.... I know.
 
Old 03-28-2005, 09:35 AM   #9
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
And then again.... it crached at 2.1 GBs. I just checked and it's NTFS.

What the hell!!!!! I'll find another way.
 
Old 03-28-2005, 09:47 AM   #10
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
You can split it to pieces with: tar -cpzf - source_file | split -b 2000m - tarpiece-
and later put them together with: cat tarpiece-* > filename.tar.gz
That will make pieces less than 2GB.
 
Old 03-28-2005, 10:18 AM   #11
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Thanks for all the help, guys!

The split one was a win-killer!
 
Old 03-28-2005, 02:01 PM   #12
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
thats weird because i had a 8 gigabyte iso file in xp ntfs. so i guess its a limitation of smbfs.
 
Old 03-28-2005, 02:38 PM   #13
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
that could be the problem.... anyway... thanks to split, I'm putting my backup just nicely.
 
Old 03-29-2005, 04:13 AM   #14
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
It is a samba problem, just google for: samba 2GB limit
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
tar.gz to .tgz file? wombat53 Linux - Software 20 06-15-2005 08:31 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM
checkinstall - make tgz, but don't install tw001_tw Slackware 6 03-11-2005 09:45 AM
How do I make a simple File server for my home LAN? cpaumelle Linux - Newbie 1 07-23-2004 07:19 AM
tgz file doesn't end in .tgz? detpenguin Slackware 4 05-15-2004 07:13 PM

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

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