如何将数据库备份到许多较小的文件中? [英] How to backup a database into a number of smaller files ?

查看:99
本文介绍了如何将数据库备份到许多较小的文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对所有人来说,


如何将数据库备份到许多较小的文件中?

例如,我可以完全备份10的数据库吗? MB分为10个文件(每个1

MB)???


我遇到的问题是数据库备份文件太大,结束了4

GB,甚至Winzip也无法压缩它(压缩后,大约80%

的压缩率是可能的)


谢谢!

来自Jason(Kusanagihk)



解决方案

请参阅联机丛书中的备份 - 您可以备份到多个设备或

文件:

备份数据库MyDB到磁盘=''c:\ bak \\ \\ MyDB.bak1'',disk =

''c:\ bak \ MyDB.bak2''


但是你无法控制究竟是什么进入每个文件,所以你可能会发现

他们的大小不一样。


西蒙


致Simon,


感谢您的回复;我已经尝试过这个命令而且它有效。但是我认为
认为文件中的1个是数据文件,而另一个是

事务日志文件(因为这个命令只接受2disk =

''c:\XXX \01.bak''"参数.....)


所以第一个文件必须大得多尺寸;而另一个是

更小.....


也许是因为操作系统的设计,我真的没想到我能打包一个数据库

就像它在基于Unix的系统下的应用方式.....


我甚至找不到第三方工具来分割备份文件

来自Jason(Kusanagihk)






< ku ********@gmail.com>在消息中写道

news:11 ********************* @ f14g2000cwb.googlegro ups.com ...

致Simon,

感谢您的回复;我已经尝试过这个命令而且它有效。但我认为该文件中的一个是数据文件,而另一个是
事务日志文件(因为此命令只接受2disk =
c:\ XXXX \ 01.bak''"参数.....)


这是不准确的。它最多可接受64个文件名。


备份数据库northwind到disk =''\\ FOO \ share1 \ nw_1.bak'',

disk =''\\ FOO \ share1 \ nw_2.bak'',disk =''\\FOO \ share1 \ nw_3.bak''


将Northwind数据库备份到三个名为的文件,并尝试

这样做的等份。


最多可以执行64个文件...


所以第一个文件的大小必须大得多;而另一个更小.....

也许是因为操作系统的设计,我真的没想到我能像它应该的那样打包一个数据库。在基于Unix的系统下.....

在分割备份文件时我甚至找不到第三方工具

来自Jason(Kusanagihk)



To all,

How to backup a database into a number of smaller files ?
For example, can I can fully backup a DB of 10 MB into 10 files (each 1
MB)???

The problem I''ve met is that the DB backup file is too large, over 4
GB, and even Winzip can''t compress it (after compressing, around 80 %
of compression rate is possible)

Thanks!

From Jason (Kusanagihk)



解决方案

See BACKUP in Books Online - you can backup to multiple devices or
files:

backup database MyDB to disk = ''c:\bak\MyDB.bak1'', disk =
''c:\bak\MyDB.bak2''

But you can''t control exactly what goes into each file, so you may find
they''re not all the same size.

Simon


To Simon,

Thanks for your reply; I''ve tried the command and it worked. But I
think 1 of the file is the Data file, while the other is the
transaction log file (since this command only accepts 2 "disk =
''c:\XXX\01.bak'' " parameter.....)

And so the first file must be much bigger in size; while the other is
smaller .....

Maybe due to the OS design, I don''t really expect I could pack a DB
like the way it should be under Unix based systems.....

I can''t find even 3rd party tools on splitting the backup file

From Jason (Kusanagihk)





<ku********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...

To Simon,

Thanks for your reply; I''ve tried the command and it worked. But I
think 1 of the file is the Data file, while the other is the
transaction log file (since this command only accepts 2 "disk =
''c:\XXX\01.bak'' " parameter.....)

That''s inaccurate. It accepts up to 64 filenames.

backup database northwind to disk=''\\FOO\share1\nw_1.bak'',
disk=''\\FOO\share1\nw_2.bak'', disk=''\\FOO\share1\nw_3.bak''

Will back up the northwind database to the three files named and attempt to
do so in equal parts.

You could do this up to 64 files...

And so the first file must be much bigger in size; while the other is
smaller .....

Maybe due to the OS design, I don''t really expect I could pack a DB
like the way it should be under Unix based systems.....

I can''t find even 3rd party tools on splitting the backup file

From Jason (Kusanagihk)



这篇关于如何将数据库备份到许多较小的文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆