Re: restore over ssh hangs (solved)

From: David Landgren (david_at_landgren.net)
Date: 05/28/03

  • Next message: Michal F. Hanula: "Re: FW: Cascading qmail servers"
    Date: Wed, 28 May 2003 14:57:26 +0200
    To: freebsd-questions@freebsd.org
    
    

    David Landgren wrote:
    > List,
    >
    > I've implemented backups with dump/restore over ssh to a remote server.
    > The backups work just fine, basically doing something like
    >
    > dump -0au -f - / | bzip2 | ssh remote.host \
    > dd of=/backup/root.bz2
    >
    > Now backups are only useful if you can restore from them... so I deleted
    > a file and then tried to restore it. I figured the command would be
    >
    > ssh remote.host dd if=/backup/root.bz2 | bunzip2 \
    > | restore -vxf - etc/foo
    >
    > This produces the following output:

    [...]

    > And my file hasn't been restored :(
    >
    > I could always ferry the entire dump file over, decompress it and then
    > restore from it, but the files in question are pretty colossal, and at
    > some point down the road I won't have enough free space to do it anyway.

    Answering my own question, should people ever encounter the same problem.

    Sending the dump over to the remote system works fine, what doesn't
    work is bringing it back and trying to restore from it. The other
    night I had a 3:00am brainwave, and realised that I should try and
    restore locally on the machine that received the dump file.

    Logging into that remote server, I ran

            bzcat root.bz2 | restore -vxf - etc/foo

    and Bingo! after some 4 minutes of CPU time it asked me "set
    owner/mode for '.'? [yn]" question. I answered yes, and received my
    file, although the ownerships were a bit messed up because of uid/gid
    mismatches between the two systems, but that's easy enough to fix.

    Now that I know the approach works this way I think I actually prefer
    it, because at least this way I know there's absolutely no way the
    restored file can clobber the file to be restored, since I'm doing it
    on a different system. (I have done this before; it's quite painful to
    explain to the luser).

    It's interesting to note in passing that today's current high-end
    servers - Pentium Xeon 3GHz, 15krpm SCSI disks, 1000Base-T - offer
    such performance that you can do backups this way and still have
    plenty of headroom left on your CPU, disks and network to do your
    usual work.

    So, hope this helps someone.

    David

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Michal F. Hanula: "Re: FW: Cascading qmail servers"

    Relevant Pages

    • Re: Mailbox Backup
      ... The key point is number 12, the Recovery storage group. ... this allows you to restore your entire Exchange store to this special ... > Individual mailbox backups are not supported in ...
      (microsoft.public.windows.server.sbs)
    • Re: backup and recover of AD objects
      ... We have been built info on W2K8 backups, we push it out to an external drive on our SAN. ... http://lindstrom.nullsession.com/?cat=7 and i was able to restore a deleted object but i wasnt able to restore any of the attributes of the ... deleted object, the object that was deleted was a user account that had a mailbox on an exchange 2003 server, so not sure if this tool can restore msexchange attributes? ... All the DC have a raid 1 and a raid 5 array, the raid 5 has no data on it and the raid 1 is where the OS lives. ...
      (microsoft.public.windows.server.active_directory)
    • Re: Windows Backup Utility Question
      ... Acronis True Image ... If you're just wanting to do backups of the user folders, ... We normally have Backup Plus run at night, backing up incrementally to DVD, ... It's important to periodically verify that you can restore ...
      (microsoft.public.windowsxp.general)
    • Re: parallel backup and restore w onbar
      ... The reason I want to do it is for speeding up the backups and restores. ... parallel backup and restore w onbar ... Each table is a different dbspace ...
      (comp.databases.informix)
    • Re: How Safe are Backups?
      ... we do SQL backups as well. ... the STSADM backups are really only for document and ... restore our site to another box, I install everything and configure it ...
      (microsoft.public.sharepoint.windowsservices)