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) 11 1900
See BACKUP in Books Online - you can backup to multiple devices or
files:
backup database MyDB to disk = 'c:\bak\MyDB.ba k1', disk =
'c:\bak\MyDB.ba k2'
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********@gma il.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.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\sha re1\nw_1.bak',
disk='\\FOO\sha re1\nw_2.bak', disk='\\FOO\sha re1\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)
To Greg.
But when I try to key the command above; it just throw out an error
stating "it needs 2 arguments but you have provided 3 arguments....."
It is the same when I give it only 1 argument (ie. only 1 disk = XXX) From Jason (Kusanagihk)
Can you post the exact command you executed and the full error message?
There's no error in sysmessages which has the format that you describe
(although some are similar), so I'm not sure exactly what you're
seeing.
Simon
<ku********@gma il.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. . To Greg.
But when I try to key the command above; it just throw out an error stating "it needs 2 arguments but you have provided 3 arguments....."
You must be doing something wrong since I cut and pasted that from a test I
performed that worked.
(only thing I did was change the name of the server I backed up to.)
It is the same when I give it only 1 argument (ie. only 1 disk = XXX)
From Jason (Kusanagihk)
I have used Winzip 9.0 to compress 20 GB files (the zip compression that
comes with windows has a much lower limit)
<ku********@gma il.com> wrote in message
news:11******** **************@ l41g2000cwc.goo glegroups.com.. . 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)
To Julian
Oh, my winzip is only version 7.X, maybe that's why I can't zip a db
file over 4 GB... From Jason (Kusanagihk)
To all,
I don't know what I've done earlier, but now I could use the command
"backup database to disk = 'xxx.bak', disk='yyy.bak' ...."
but the matter is, I could not find the backuped file in my PC; eg.
I've quoted it to backup the db to c:\temp\001.bak and 002.bak; but I
can't find these 2 files throughout the PC.....
nothing was wrong as I've been given a message stating it is working
fine
Processed 320 pages for database 'northwind', file 'Northwind' on file
3.
Processed 1 pages for database 'northwind', file 'Northwind_log' on
file 3.
BACKUP DATABASE successfully processed 321 pages in 0.283 seconds
(9.266 MB/sec).
The command I've used is :
backup database northwind
to disk='c:\temp\n w01.bak', disk='c:\temp\n w02.bak',
disk='c:\temp\n w03.bak'
Anything wrong again ? From Jason (Kusanagihk) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: A.M. de Jong |
last post by:
Hi,
Every day we perform a full database backup.
(during the night).
Since we need no "additional" backups we had the problem that the
transaction log file grows and grows.
Therefore now just after the backup we perform a backup of the transaction
log with no log.
So we free up the space in the log file. (it truncates).
|
by: TThai |
last post by:
Hi,
Appreciated anyone who can help us with our problem. Our backup job
for ROUTT database has been failing for the last 4 days. It was
working fine for almost a year now. The only thing happened few days
before the problem started is the addition of more memory to the
server because we've been getting the low virtual memory error. There
are two databases in this server so we have two backup jobs everyday.
The other backup job runs...
|
by: acko bogicevic |
last post by:
Hi everyone
I have the folowing situations with my backups.
With Database Maintenance Plan is created backup strategy. Full Backup
is performing every day at 1.00 am. And Romove files older than: is
checked on 2 days, and it's working fine.
I am interested how can i perform this action with tsql, without using
DMPlan.
I tryed this:
BACKUP DATABASE TEST TO DISK 'C:...' WITH INIT, RETAINDAYS = 2
|
by: muzamil |
last post by:
Hi
We have developed and deployed a database which contanis very sensitive
information. Our client is now concerned about the security of the back
ups. In essense, if someone in the organization can get hold of the
backup of the database, he can simply restore it on any sql server in
the world with sa permission.
I know Microsoft provides flexibility of adding the "Password" in the
Backup t-sql statement but it wouldn't be of much use...
|
by: Eric Herber |
last post by:
I've a question regarding db2 (V8.1) and database backups
going to a storage manager like TSM for example.
As I can see in the storage manager if I backup the complete
database over the TSM API (no tablespace backups) the backup
images is stored as a single backup object.
Later I will be able to restore the complete database from
this image and I will also be able to restore single tablespaces
from this backup image as long as I...
| |
by: Uthuras |
last post by:
Greetings,
We have DB2 V 8.1 with FP 4 on AIX 5.2. Our database backup is done
using TSM v
4.1.2. However, we notice TSM make use of only one session even though
we defined 4 sessions for backup. Here is the command
db2 "backup db $dbname online use tsm open 4 sessions with 8 buffers
buffer 3072 parallelism 6"
|
by: uthuras |
last post by:
Hi all,
I have DB2ESE version 8.1 with FP 4 on AIX 5.2. My database used to be
1.1TB. When the DB size is 1.1TB, it takes approximately 7 hours to
backup the entire database (online backup). The backup is directed to
disk and not tape.
Recently, we did data archival by purging some of the records. Now, the
size of the database is 500GB plus. That means, only data purged and we
never resize the tablespace. Therefore, the allocated...
|
by: Steven |
last post by:
I have a problem with moving the backup of my database from machine to
machine. The size is 17 Gig and my network keeps timing out when I try
to ftp it from machine to machine. I have had the situation where I
ended up with a backup that was in several pieces. the files were
xxxxx.001 xxxxxx.002 and so on.
I was thinking that if I could break up the file into smaller pieces
they would be able to move easier. Does anyone know how to...
|
by: David Greenberg |
last post by:
Hi
I have a backup device file ... ".bck" whick has grown pretty large.
Is there any way I can reduce its size ?
Thanks
David Greenberg
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |