Questions tagged [backup]

Making copies of data which may be restored after a data loss event or to recover data from some earlier point in time.

Backups have two distinct purposes. The primary purpose is to recover data after its loss, be it by data deletion or corruption. The secondary purpose of backups is to recover data from an earlier time, according to a user-defined data retention policy.

There are two types of backup : Physical and Logical

Physical

Cold backups copy database files when the database is offline. This would be done by shutting down the database, copying the database files, and starting the database back up. Although this is a reliable backup method, many databases have availability requirements that preclude its use.

Hot backups use software that understands the state of the database to make a consistent copy of the database files without requiring the database to be taken offline.

Some systems can capture transaction logs which can be used in conjunction with an earlier backup to effectively have a backup for any point in time for which the logs cover.

Some OS and disk systems can take a snapshot of the database files providing a point in time which the files can be restored to. When this type of backup is done and the snapshot is restored, the system will behave similarly to a loss of power and likely will need recovery.

Logical

A logical backup makes a copy of the objects in the database independent of their physical location. This copy could have an export specific format or be in the form of SQL statements.

See the backup article on Wikipedia for further information.

2690 questions
4
votes
1 answer

Do I need to stop the service to back up the database?

We have several database driven applications using MS SQL Express, Pervasive, MySQL, and some sort of flat file database. PostgreSQL "may" be added later. We have backup software that is VSS aware. I need to backup the database files off the…
user37109
  • 41
  • 1
  • 2
3
votes
0 answers

Cold backup database, what files to copy, slow shutdown?

After a broken server installation I am going to backup a mysql database with a cold backup. This is, because I am not able to dump the sql tables and somehow everything is broken. My questions are at the bottom of this post. $ tail…
3
votes
1 answer

SQL - I have just Differential backup but database exists

I have Differential backup from my database.one table is deleted.my data is lost.i create that table again but i cannot restore Differential backup because sql wants a full backup first.if i get full back up an restore it with norecovery.when i want…
Ali
2
votes
3 answers

Reasons to Backup (or not backup) QA and Dev Databases

Pretty simple question: is it standard/best practice to backup dev and QA instances of the database? Assume that the schema information is kept in some form of source control.
Phil Sandler
  • 465
  • 1
  • 6
  • 19
1
vote
2 answers

Why do we do weekly and monthly database backups - why not just daily?

I'm sure I'm missing something obvious here, but if I'm doing a full database backup every day, why do I also need separate weekly and monthly ones? Or is it a case of not needing separate weekly and monthly ones, but just setting a daily one aside…
Shaun
  • 155
  • 4
1
vote
0 answers

How to : gcloud Snapshot MariaDB Galera Node?

How to do a gcloud snapshot of Mariadb Galera Node for backup and restore ? I heard of people talking about gcloud snapshots and nowhere explains the full process of doing it. Kindly delight with the information please. Is that possible to use…
SAGAR Nair
  • 187
  • 2
  • 9
0
votes
1 answer

Backup policy for Oracle 11g database in non-archive mode

My database is in non-archive mode and its size is 5 TB (monthly 200 GB increment). Currently we are taking the full backup monthly. As database growth is high, backup size and time had increased behold the acceptable limit. Hence we would like to…
0
votes
1 answer

What does it mean to backup a database

What does it mean to backup a database? My impression is that you would simply dump everything that makes up the database into some format that can be stored externally and used to restore from when needed. Are there different levels of backups? For…
MxLDevs
  • 339
  • 1
  • 4
  • 10
-1
votes
1 answer

SQL Server database backup file is successfully created in a path but no such file path is available in my local machine

When I tried to take backup of SQL Server database, it was successfully created in C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\ but no such path is available on my local machine. On my system I have C:\Program…
Sathiya Kumar V M
  • 219
  • 1
  • 3
  • 15