Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-16-2004, 11:40 AM   #1
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?

Old 08-16-2004, 01:23 PM   #2
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, 02:37 PM   #3
Registered: Jul 2003
Posts: 34

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

Rep: Reputation: 30
to backup:

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:

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


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



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 09:23 AM
backing up windows with nfs class_struggle Linux - Newbie 4 08-28-2004 09:16 AM
Backing Windows backups ? lin00b Linux - Networking 1 06-29-2004 01:01 AM
Backing up files on Windows boxes to Linux thosm Linux - Software 1 04-08-2004 07:36 PM
Backing up Windows stuff into Linux jingleman Linux - Newbie 5 07-23-2003 02:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration