stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


This posting, mostly about rsync, is aimed at peop ...







This posting, mostly about rsync, is
aimed at peop ...

This posting, mostly about rsync, is
aimed at peop ...
03/13/2003 10:22 AM


This posting, mostly about rsync, is aimed at people like me -- web developers who migrated to OS X with little experience in actually running web servers. I did it almost two years ago and am still learning.

I quickly came to enjoy, and rely on, having a local Apache/MySQL/PHP environment for development, but found that once a site went live I became more tied to the production server than I wanted. It was slowing me down, too, because of the workarounds needed to 1) keep work in progress isolated from live code and 2) integrate that work when testing was complete.

To remedy that situation I've been using rsync, with great success. I set up offline mirrors of live sites I'm working on, complete with their own MySQL databases and local-only virtual domains (e.g. "bigfancyclient.dev"). I tweak code with abandon and then, when it's all working perfectly (ahem), I upload the changes to the production server in one step -- using a shell script containing a couple long-ass rsync commandlines.

For those new to rsync, basically my rsync commands say: "here's the development mirror A; here's the live server B; take every file in the following directories on A that's newer than its counterpart on B and upload it, saving the old one as a backup."

Sometimes even a "simple" change involves interdependent changes to half a dozen files in different directories. I don't have to keep track. rsync finds them all. I also have a "dry run" version that has the same commands with the addition of the "-n" option that does everything except actually transfer the files -- for a last-minute sanity check.

(Note 1: In theory you could accomplish the same thing by just uploading everything, but in practice this doesn't work except with very small sites. And if you get around this by selecting which directories or files to upload, well, then you are manually doing the work that rsync can do faster and more accurately.)

(Note 2: This is clearly best suited to smaller operations. With many developers working at once, you want something like CVS. Though rsync can of course sync in either direction, so I can update my mirrors when other developers or HTML coders make changes to the live server.)

rsync has a jillion options, so if this sounds at all appealing I encourage you to curl up with the manpage.

I have used lots of other methods for making code changes to live sites; for efficiency, ease, and safety this beats them all hands down.

Any related tricks or methods to share? Discuss




This is a GrokNews Entry: (what is grok?)





Similar Items

This posting, mostly about rsync, is aimed at peop ...

Grok Headline matches for This posting, mostly about rsync, is aimed at peop ...

[ GLSA 200407-10 ] rsync: Directory
traversal in rsync daemon


[ GLSA 200407-10 ] rsync: Directory
traversal in rsync daemon
07/12/2004 02:16 PM
Kurt Lieber (Jul 12 2004)

rsync


rsync 12/07/2003 07:08 AM
Dec. 4, 2003: Rsync Security Notice .. The rsync page .. rsync to 2.5.7 .. new version .. rsync

rsync.samba.org
track this site | 3 links


rsync.py 1.0.10


rsync.py 1.0.10 12/29/2004 07:30 AM
A Python port of rsync.

rsync 2.5.7 (Development-2.5)


rsync 2.5.7 (Development-2.5) 12/04/2003 02:36 AM
A file transfer program to keep remote files in sync.

rsync rocks!


rsync rocks! 02/01/2005 09:26 PM
My old buddy Henry has been touting rsync for a long time now, but only recently have I got around...

rsync 2.6.0 (Development-2.5)


rsync 2.6.0 (Development-2.5) 01/02/2004 09:29 AM
A file transfer program to keep remote files in sync.

File-Rsync-0.32


File-Rsync-0.32 12/27/2003 05:21 AM

File-Rsync-0.38


File-Rsync-0.38 04/04/2005 12:02 AM

File-Rsync-0.33


File-Rsync-0.33 06/16/2004 06:05 PM

File-Rsync-0.34


File-Rsync-0.34 08/17/2004 12:15 AM

rsync security advisory (fwd)


rsync security advisory (fwd) 12/04/2003 01:17 PM
Andrea Barisani (Dec 04 2003)

New rsync Released to Fix Vulnerability


New rsync Released to Fix Vulnerability 12/04/2003 10:41 PM

File Synchronization With Rsync


File Synchronization With Rsync 12/05/2002 03:44 PM
Save time (and money) on data transfers between hosts with rsync, a synchronization tool that allows easy, efficient replication of files between different locations. Sync up, now!

rsync-bc 2.5.6-20031113/20031114


rsync-bc 2.5.6-20031113/20031114 12/09/2003 10:47 AM
A stripped-down version of rsync.

TSSA-2004-020-ES - rsync


TSSA-2004-020-ES - rsync 08/16/2004 03:57 PM
tinysofa Security Team (Aug 16 2004)

Back up an iPod via rsync


Back up an iPod via rsync 09/27/2004 10:44 AM
You can use the unix tool rsync to do a full backup of your iPod; I've tried it, and it works. Make sure you have another HFS+ volume with enough room for the contents of your iPod. Then all you need to do is type (in the Ter...

Rsync Vault Manager 0.78


Rsync Vault Manager 0.78 10/30/2003 09:22 PM
Uses rsync to manage archives of clients across multiple logical partitions.

Immunix Secured OS 7.3, 7+ rsync update


Immunix Secured OS 7.3, 7+ rsync update 12/08/2003 12:56 PM
Immunix Security Team (Dec 05 2003)

Rsync Incremental Backup Script 2.2


Rsync Incremental Backup Script 2.2 02/17/2004 07:54 PM
A command-line incremental backup script.

rsync-incr 1.1 (Default branch)


rsync-incr 1.1 (Default branch) 03/25/2005 07:06 AM
rsync-incr is a Linux wrapper shell (bash) script around rsync to perform automated, unattended, incremental, disk to disk backups, automatically removing old backups to make room for new ones. It produces standard mirror copies that are browsable and restorable without specific tools.
Changes:
This release fixes a minor bug where in some cases the automated removal of old backups failed to remove some of them.

Rsync Vault Manager 0.90-beta


Rsync Vault Manager 0.90-beta 04/26/2004 11:42 AM
Uses rsync to manage archives of clients across multiple logical partitions.

TSLSA-2004-0024 - rsync


TSLSA-2004-0024 - rsync 04/30/2004 03:07 PM
Trustix Security Advisor (Apr 30 2004)

TSLSA-2003-0048 - rsync


TSLSA-2003-0048 - rsync 12/04/2003 01:17 PM
Trustix Security Advisor (Dec 04 2003)

TSLSA-2004-0042 - rsync


TSLSA-2004-0042 - rsync 08/17/2004 01:23 PM
Trustix Security Advisor (Aug 17 2004)

Rsync Path Sanitation Vulnerability


Rsync Path Sanitation Vulnerability 08/19/2004 09:51 AM

Direct and Related Links for 'Rsync Path Sanitation Vulnerability'

“A vulnerability has been reported in rsync, which potentially can be exploited by malicious users to read or write arbitrary files on a vulnerable system…. Successful exploitation requires that the rsync daemon isn’t running chrooted. The vulnerability affects version 2.6.2 and prior. Solution: A fix is available in the CVS repository and will also be included in version 2.6.3. The vendor suggests setting “use chroot = true” for all modules in the file “rsyncd.conf”.”…

Automate Backups on Network Using RSync


Automate Backups on Network Using RSync 05/12/2004 02:27 PM

Rsync Vault Manager 0.90.2-beta


Rsync Vault Manager 0.90.2-beta 05/09/2004 05:12 PM
Uses rsync to manage archives of clients across multiple logical partitions.

Rsync Vault Manager 0.90.3-beta


Rsync Vault Manager 0.90.3-beta 07/13/2004 01:58 PM
Uses rsync to manage archives of clients across multiple logical partitions.

Gentoo rsync Server Compromised


Gentoo rsync Server Compromised 12/03/2003 03:45 PM

rsync friendly file encryption


rsync friendly file encryption 03/27/2005 08:24 AM
rsyncrypto 0.12 released

Viruses Aimed at Microso


Viruses Aimed at Microso 09/20/2004 04:53 PM
Techzonez Sep 20 2004 8:37PM GMT

An SEO Contest Aimed at Google


An SEO Contest Aimed at Google 06/06/2004 11:17 AM
Search Engine Optimization experts are competing to see who can optimize their pages best to rank highest in a search for a nonsense phrase which I'm not going to repeat...

Fee 'seminars' aimed at rebel
MPs


Fee 'seminars' aimed at rebel
MPs
12/09/2003 03:48 AM

news.bbc.co.uk/go/click/rss/0.91/public/-/1/hi/uk_politics/3299489. stm
track this site | 4 links


[slackware-security] rsync update
(SSA:2004-124-01)


[slackware-security] rsync update
(SSA:2004-124-01)
05/03/2004 06:07 PM
Slackware Security Team (May 03 2004)

A detailed walkthrough on creating
backups using rsync


A detailed walkthrough on creating
backups using rsync
10/28/2003 11:09 PM
Introduction This hint describes a method for generating automatic and rotating local snapshots of a file system with remote copies on UNIX systems using cp (or cpio), rsync, ssh and cron. It is intended for servers, but wor...

[SECURITY] [DSA 499-2] New rsync
packages fix directory traversal bug


[SECURITY] [DSA 499-2] New rsync
packages fix directory traversal bug
06/02/2004 11:03 PM
Matt Zimmerman (Jun 02 2004)

[CLA-2003:794] Conectiva Security
Announcement - rsync


[CLA-2003:794] Conectiva Security
Announcement - rsync
12/04/2003 04:47 PM
Conectiva Updates (Dec 04 2003)

[SECURITY] [DSA 499-1] New rsync
packages fix directory traversal bug


[SECURITY] [DSA 499-1] New rsync
packages fix directory traversal bug
05/03/2004 12:11 PM
Matt Zimmerman (May 01 2004)

A free perl/rsync backup script


A free perl/rsync backup script 04/14/2004 10:27 AM
There are a lot of backup solutions for Mac OS X. I have tried many of them, and most of them either: Cost money Only can backup to local directories (or remote requiring you to mount them first). Do transfer backup data in ...
Grok Description matches for This posting, mostly about rsync, is aimed at peop ...
GrokA matches for This posting, mostly about rsync, is aimed at peop ...

This posting, mostly about rsync, is aimed at peop ...

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Apple plans to debut
an on-line music
service for ...

Speaking of
Camino...If you are
thinking about gra
...

Because it lacks
automatic update
notification, it ...

I'd like to add some
more information on
the Ximia ...

The Best
Battleground for
Linux?

The Next Big Web
Thing - Really

Unix System Best
Bets

Microsoft's Source
Code Actions Speak
Louder Than Words

The Internet We
Deserve

Microsoft Ships
Enterprise IM Beta

Linux and Java:
Signpost for the
Future

SCO Sues IBM Over
Unix

Microsoft To Debut
Office Beta; Sun
Bows New StarOffice

Has OS Emulation
Come of Age?

The Ultimate Lock-In
Safari Width 1.0
HomeRun 1.2.2
Web Image Maker 1.0
IE Cache Trasher X
1.4

Word Counter 1.0
Happy birthday Rob!
Mac OS X Hints:
Return the short
username in
AppleScript

NetRestore 1.1.1
WebTunes 1.0
Purgatory Design:
Intaglio demo
available

Apple: Java 1.4.1
available

CocoaMySQL 0.4
MacDevCenter:
Announcing the Mac
OS X Innovators
Contest

Mac OS X Hints: A
web search script
for LaunchBar

ScriptBuilders News
Monkeybread Software
updates their
REALbasic Plugin
Collection

Back up user prefs
2.3.7

Apple Bites Into
Music Downloads?

AppleScript: Speak
the sender of a mail
item in Mail

Mike and Daniel's
Adventures in C#

Vulnerability in man
< 1.5l

SOHO Routefinder 550
VPN, DoS and Buffer
Overflow

GLSA: ethereal
(200303-10)

Re: Corsaire
Security Advisory -
Clearswift
MAILsweeper MIME
attachme nt evasion
issue

802.11b DoS exploit
[Opera 7/6] Long
Filename Buffer
Overflow
Vulnerability in
Download

Re: .MHT Buffer
Overflow in Internet
Explorer

Re: [Summary of
Responses] Bound by
Tradition: A
sampling of the
security posture of
the Internet's DNS
servers

pgp4pine stack
overflow
vulnerability

[sorcerer-spells]
MAN-SORCERER2003-03-
11

NetBSD Security
Advisory 2003-003
Buffer Overflow in
file(1)

RE: QPopper 4.0.x
buffer overflow
vulnerability

VPOPMail Account
Administration
(squirrel mail)
version 0.9.7

Re: QPopper 4.0.x
buffer overflow
vulnerability

@(#)Mordred Labs
advisory - Remote
DoS in PostgreSQL <=
7.2.2

what is grok?