Re: cpio files to remote server

From: Kevin Fleming (kevintickle_at_gmail.com)
Date: 09/21/05

  • Next message: Brian K. White: "Re: Startup sequence OSR 5.0.6"
    Date: 21 Sep 2005 07:31:12 -0700
    
    

    "John DuBois" <spcecdt@armory.com> wrote in message
    news:11j20f5d53b4053@corp.supernews.com...
    > In article <1127247752.536290.93790@z14g2000cwz.googlegroups.com>,
    > Kevin Fleming <kevintickle@gmail.com> wrote:
    >>Hey Everybody,
    >>
    >>This is what I'm starting with to backup some data from one box to
    >>another:
    >>find /dir/data -depth -print |cpio -o |rcmd backup "cpio -ivdum"
    >>
    >>The job copies some data over every night. Right now, both servers are
    >>on the same LAN, but the backup server is going to be moved offsite,
    >>with a slower connection. Is there a way that I can add something like
    >>gzip into the command to compress the data before sending it to the
    >>remote server?
    >
    > Sure. Try:
    >
    > find /dir/data -depth -print |cpio -o | gzip |rcmd backup "gunzip |
    > cpio -ivdum"
    >
    > John
    > --
    > John DuBois spcecdt@armory.com KC6QKZ/AE
    > http://www.armory.com/~spcecdt/

    Thanks John, that works...any ideas on how to see the amount of data
    that
    was actually transmitted? I suppose I could just gzip all of the data
    to a
    file just on its own so I'd know what the compression is like, but
    thought
    someone might have a slicker way of doing it.

    "Ian Wilson" <scobloke2@infotop.co.uk> wrote in message
    news:<dgrb0j$jf7$1@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com>...

    > In my experience, rsync will be far more efficient since it only

    > transmits the changed parts of changed files.

    Also, thanks to JP Radley and Ian Wilson for their rsync
    suggestions...I'll
    have to look into that.

    Thanks,
    Kevin Fleming


  • Next message: Brian K. White: "Re: Startup sequence OSR 5.0.6"

    Relevant Pages

    • Re: how do I compress large files? was Re: can this backup script work?
      ... Since the mysqldump produces a file that is over a gig in size, we want to compress the file. ... So I'm using file_get_contents to load the backup database info as a string. ... Is PHP actually using a gig of memory to hold this giant string? ... saved to another server, linked to the current server using NFS. ...
      (alt.php)
    • Re: backup the entire server
      ... > | a script that backs up the entire server to hard drive. ... I need to compress the files ... We use it to backup both Linux ...
      (Fedora)
    • Re: cpio files to remote server
      ... | Hey Everybody, ... | on the same LAN, but the backup server is going to be moved offsite, ... which can compress if you tell it do do so. ...
      (comp.unix.sco.misc)