Tags:
create new tag
, view all tags

Found a script (see notes) for mirroring a web site — not sure it completely fills the bill (doesn't discuss Apache setup, etc.). I think it's mainly aimed at content mirroring which means it could be good for other purposes. The same thread had other suggestions (this uses rsync).

See:

Contents

Notes

Re: Mirror Type Script
Date: Thu, 24 Apr 2003 01:51:38 +1000
From: Mark Constable <markc@renta.net>  (RentaNet)
To: debian-isp@lists.debian.org

On Wed, 23 Apr 2003 10:54 pm, Johnno wrote: > I am trying to a script that use ftp to mirror websites from one server to other server(Backup) plus some other data files.
> Does anyone know where I can find such a script??

The deb package "mirror" uses ftp. If rsync is acceptable both ends then...

#!/bin/sh

SERVER=myotherserver.com
COMMAND='/usr/bin/nice /usr/bin/rsync --exclude-from=/etc/backup.conf -azxv --delete'

$COMMAND $SERVER:/ /mnt/hdc5
$COMMAND $SERVER:/usr/ /mnt/hdc5/usr
$COMMAND $SERVER:/var/ /mnt/hdc5/var
$COMMAND $SERVER:/home/ /mnt/hdc5/home

adjust paths accordingly and my /etc/backup.conf looks like...
/dev
/proc
/mnt
/tmp
lost+found
core
vmlinuz
System.map

and set up an ssh key and copy it to $SERVER so you don't have to manually type the password each rsync invocation. rsync is way more efficient than ftp.

Contributors

  • () RandyKramer - 23 Apr 2003
  • If you edit this page: add your name here; move this to the next line; and if you've used a comment marker (your initials in parenthesis), include it before your WikiName.

Page Ratings

Topic revision: r1 - 2003-04-23 - RandyKramer
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding WikiLearn? WebBottomBar">Send feedback
See TWiki's New Look