Re: backup the entire server

From: Aleksandar Milivojevic (amilivojevic_at_pbl.ca)
Date: 04/14/05

  • Next message: Rick Stevens: "Re: SCSI disk errors, but disk diagnostics say disk is OK"
    Date: Thu, 14 Apr 2005 12:58:03 -0500
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Claude Jones wrote:

    > Contrary to the subject line, BackupPC doesn't NOT back up the entire server,
    > at least in WindowsLand. All files that are locked, which include things like
    > your Outlook .pst file, and many operating system files, will NOT be backed
    > up. I am too new to Linux to know how this issue plays out in the Linux
    > world.

    I Unix world, there are no mandatory file locks, only advisory locks.
    If application chooses to ignore the lock, nothing is preventing it from
    accessing the file (including removing the file that some other process
    keeps open).

    So, backup application under Unix *can* backup the locked file, if it
    chooses to ignore the locks (or doesn't check for them). However, if
    the file was being kept open by some other application for writing, the
    content of the file might be corrupted/unusable after restore is
    performed (not to be confused with corrupted buckup or file, the backup
    and file will be OK, only the content might get corrupted).

    There are couple of solutions to the problem:

      - stop applications that keep file open, then do the backup

      - simlar to above, if under LVM, make snapshot (instant operation),
    restart applications, do backup of snapshot, delete snapshot

      - similar to previous (but redundancy lost while backup runs), if on
    software RAID1, flush dirty pages to disk, detach one submirror, do the
    backup, than reattach the mirror (Solaris has a nice feature that Linux
    lacks, Solaris allows submirror to be offlined, instead of detached, in
    which case no resync of entire mirror is needed, only changed blocks are
    synced, plus handy lockfs command that prevents new dirty pages to be
    created between sync and offline (or detach) operations, so you are
    guaranteed to have correct data on offlined (or detached) submirror).

      - use application's backup module to do safe backups. most databases
    come with some kind of dump tool, some come with its own backup tools
    and/or modules for backup systems such as Legato Networker or Veritas
    Netbackup), and some can create snapshots. safe to use on live database
    as long as database supports transactions and/or locking *and*
    applications that access database are using them correctly (in other
    words, they don't leave database in unconsistent state between two
    transactions or wile tables are unlocked). if your database can't be
    brought down not even for milisecond, this might be the only option for
    making a backup of it.

    -- 
    Aleksandar Milivojevic <amilivojevic@pbl.ca>    Pollard Banknote Limited
    Systems Administrator                           1499 Buffalo Place
    Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Rick Stevens: "Re: SCSI disk errors, but disk diagnostics say disk is OK"

    Relevant Pages

    • Re: how to do backup of msde?
      ... I can't give you a complete answer as there are others better suited to explain however in general terms when you detach a database the logs files are flushed, statistics updated and completed transactions committed to the database. ... In my experience most backup regimes involve stopping the server processes, backing up all MDF & LDF database files required and then restarting the server processes. ... >we use Protection Pilot, it installs a MSDE that it uses ...
      (microsoft.public.sqlserver.msde)
    • RE: How do I restore from mdf and ldf files?
      ... Tasks -> Backup Database ... Tasks -> Restore Database ... Windows 2003 Server with Latest Service Pack ... Pre-requisites for Sharepoint Backup and Restore: ...
      (microsoft.public.sharepoint.portalserver)
    • Re: Restoring a db from an OS file
      ... > database backup. ... > bad the primary and the server went down. ... > Does this look like a good situation to detach the DBs and build new ones? ...
      (microsoft.public.sqlserver.server)
    • Re: RMAN restore of full backup fails completely
      ... You are not using a catalog database. ... You might have autobackup controlfile on, ... Your autobackup has been made *prior* to the backup! ... plus archivelog', when i try a restore on the other server however, the ...
      (comp.databases.oracle.server)
    • Backup and Restore Files
      ... What is the best way to backup and restore a runtime database file? ... pszDisplayName As String ...
      (microsoft.public.access.gettingstarted)