Re: Is this a job for wget?

chris-usenet_at_roaima.co.uk
Date: 11/23/04


Date: Tue, 23 Nov 2004 11:58:03 +0000

Jeff <soldier@charter.net> wrote:
> I have a nightly cron job on server1 that backups files to a backup
> directory.
> I'd like to copy the resulting tar file to server2, located on a WAN.

I'd use rsync for this, running over ssh. The "obvious" place to do this
is as part of the existing cron job, immediately after the backup has
completed.

(a) from server1 to server2:
        rsync -avP -z -e ssh /path/to/*.tar server2:/path/to/destination/dir

(b) from server2 to server1:
        rsync -avP -z -e server1:'/path/to/*.tar' /path/to/destination/dir

Notes:
    * Use either (a) or (b) but not both

    * Remove the -z flag if your files are already compressed

    * Set up ssh certificates to ensure you don't need to provide
        a password. If you don't know how to do that, read up ssh-keygen
        and then ask here again if you're still stuck.

    * If your remote user account is different to the local one, prefix
        the remote hostname with "user@", where "user" is the remote
        username.

    * rsync only copies changes, so it's (reasonably) efficient to
        call it even when there have been no changes to the source
        data files

Chris



Relevant Pages

  • Re: dcdiag - replication Concerns
    ... If no backups exist i would follow asap this way for backup: ... Last replication recieved from Server1 at 2009-03-30 ... WARNING: This latency is over the Tombstone Lifetime ...
    (microsoft.public.windows.server.active_directory)
  • Re: Unable to decommission a Windows 2008 DC via dcpromo
    ... When I built server1, I specified those locations. ... Server1 has never been restored from backup. ... The File Replication Service Event log test ... Other event log messages may also help determine the ...
    (microsoft.public.windows.server.active_directory)
  • Re: NTbackup problem
    ... The recipe is same for you as ... Server1 with data, (cache enabled, and greyed out so ... Server2 with an external USB HDD where the backup is being saved. ...
    (microsoft.public.windows.server.general)
  • Re: Disaster Recovery Question
    ... If you have a backup of Exchange, why have a backup of your AD, system state ... > 1) Remove Server1 from Active Directory manually since I ... > My concern is weather or not I will have SID problems ...
    (microsoft.public.exchange2000.win2000)
  • [SLE] Backup using "mount -t smbfs..."
    ... I have small script doing backup every week. ... umount '/var/local/backup' -- ... It creates backup file in server1, but does not copy it to server2. ...
    (SuSE)