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
cat file1 file2 file3 | xfsrestore -f - ...