[Cialug] Is there a better way to sync two directories?

Barry Von Ahsen barry at vonahsen.com
Mon Jan 2 16:10:11 CST 2012


do you have shell on either?  could you upload a statically compiled rsync?


if not, you could generate a file list on each machine, diff it, and I'm
pretty sure scp/sftp can take a file of files to transfer


there's also unison, I think that will work from your local machine to
sync two remote machines

-barry



On 01/02/2012 02:20 PM, Adam Shannon wrote:
> Hello all,
> 
> I'm moving web hosts (from a restricted 1and1 box to an amazon
> instance) and I was wondering if there was a better way to copy all of
> the files over. The biggest part is my image hosting site, which I
> would like to keep the amazon box as close as I can to my 1and1 box.
> However, on my 1and1 box I don't have access to install programs (so
> rsync is out). What I'm doing to start is using scp to transfer
> everything over, however it looks like scp will copy files even if
> they already exist. With 16,000+ images I'd rather not do that (if I
> want to keep the two boxes as similar as possible during the move).
> 
> My question is, is there a better way to ensure the two boxes are the
> same even on this limited setup?
> 
> Thanks,
> 



More information about the Cialug mailing list