Best Way to sync web sites
I have a non profit web site that I manage and was hosting it
on my server.
I have recently mirrored the site on another box different location.
Curious what would be a good way to keep them in sync.
Make change on site A
Cron job runs x times a day to sync with Site B.
I am looking at rsync but since I have root (via ssh) disabled
at both sites I am not sure how to this would work.
All posts sent on ReCycled Electrons...
You might consider using groups for access control so that you need not use root for file transfers.
Another possibility to consider, if root is needed, is to re-enable root login but disable passwords, and use public key authentication instead. In chmod(2) use (only the highlighted line is not a default):
PermitRootLogin yes PasswordAuthentication no PubkeyAuthentication yes
$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/tester/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/tester/.ssh/id_rsa. Your public key has been saved in /home/tester/.ssh/id_rsa.pub. The key fingerprint is: 3a:ca:80:b4:10:c5:ab:6a:ae:3e:3e:25:28:7f:5f:61 email@example.com
To connect between servers, no passphrase is used. When humans use keys for authentication, it is recommended to use passphrases. The best practice for authentication is to have require two components -- something the user has (the private key, a token, a fingerprint) and something the user knows (a passphrase or password).
|Thread||Thread Starter||Forum||Replies||Last Post|
|Collect visited sites||bichumo||General software and network||3||8th August 2008 06:32 PM|
|How to sync files over ftp||graudeejs||FreeBSD General||4||4th August 2008 10:18 PM|
|Cool sites||18Googol2||Off-Topic||0||2nd May 2008 09:19 AM|