xfs
[Top] [All Lists]

Re: xfsdump media file size

To: "Jacky Kim" <jcy_2008@xxxxxxx>
Subject: Re: xfsdump media file size
From: Ivan Rayner <ivanr@xxxxxxx>
Date: Mon, 5 Apr 2004 13:07:33 +1000
Cc: "linux-xfs" <linux-xfs@xxxxxxxxxxx>
In-reply-to: <200404040646.i346kpkt080088@mx2.sgi.com>
Organization: SGI
References: <200404040646.i346kpkt080088@mx2.sgi.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Sun, 4 Apr 2004 12:38:43 +0800, Jacky Kim wrote:

> >> Because Linux 2.4 kernel has 2 GB file size limit, I want to backup some 
> >> data 
> >> to severial regular files with limited size. 
> >>  
> >> I find that the '-d' option can specify the size of dump media files, so I 
> >> try 
> >> the follow command:
> >> 
> >>     # xfsdump -l 0 -d 100 -f /backup/data -s data /home
> >> 
> >> But it doesn't work, because the size of the media file(/backup/data) is 
> >> much 
> >> larger then 100 megabytes.
> >> 
> >> What can I do?
> >
> >Basically, you can't do that.  Linux xfsdump only supports writing to
> >multiple media files if it is writing to tape.  You could probably use the
> >split utility to do what you want.  Eg.
> >
> >  xfsdump -f - ... | split -b 100m
> >
> >And then you'll have to play a similar trick (probably using cat) to join
> >them together for xfsrestore.
> 
> But there is still the same problem: the totle size will exceed 2GB limit when
> I join the splits together.

You don't need to join them back together.  You should be able to do
something like:

  cat file1 file2 file3 | xfsrestore -f - ...

Ivan


<Prev in Thread] Current Thread [Next in Thread>
  • Re: xfsdump media file size, Ivan Rayner <=