LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-16-2004, 10:40 AM   #1
BruceC
Member
 
Registered: Jul 2003
Posts: 34

Rep: Reputation: 15
Backing up to a windows share


I am trying to use tar to backup my linux server to a windows share but as you might guess it quits when the tar file reaches 2GB.
Does anyone have a script that could split up a tar to multiple tar files?

Thanks.
 
Old 08-16-2004, 12:23 PM   #2
denniz
Member
 
Registered: Apr 2004
Location: amsterdam
Distribution: Debian (Sarge and Woody)
Posts: 49

Rep: Reputation: 15
Look in the man pages of tar. man tar should take you there. I reckon there's an option to create volumes, and explanation of how to set the sizes of them. The 2 GB size limit is known to me. Horrible when working with large video files. Since you want to get all of your data backed-up, you could also tar some directories (etc, usr, home) and stay under 2 GB. Hope you get there!
 
Old 08-16-2004, 01:37 PM   #3
BruceC
Member
 
Registered: Jul 2003
Posts: 34

Original Poster
Rep: Reputation: 15
-cM makes a multi-volume backup.
 
Old 08-16-2004, 02:09 PM   #4
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
to backup:

Code:
tar -czvf /tmp/backup.tgz /data/location /more/data/location
split -b 2000000000 backup.tgz
cp xa* /mnt/windows_share
rm /tmp/backup.tgz
to restore:

Code:
cp /mnt/windows_share/xa* /tmp
cat /tmp/xa* > /tmp/backup.tgz
tar -xzvf /tmp/backup.tgz

tada!

hope i could help!!!!!!!!!!!!







 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
backing up windows with nfs class_struggle Linux - Newbie 4 08-28-2004 08:16 AM
Backing Windows backups ? lin00b Linux - Networking 1 06-29-2004 12:01 AM
Backing up files on Windows boxes to Linux thosm Linux - Software 1 04-08-2004 06:36 PM
Backing up Windows stuff into Linux jingleman Linux - Newbie 5 07-23-2003 01:51 PM

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

All times are GMT -5. The time now is 11:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration