SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
Revision of Backups from Fri, 06/05/2009 - 11:00
Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.
To mirror the entire /home/vpopmail
structure, on the destination server:
rsync -avx --delete -e ssh root@<source_server>:/home/vpopmail /home/
To mirror just a domain, on the destination server::
rsync -avx --delete -e ssh root@<source_server>:/home/vpopmail/domains/<domain> /home/vpopmail/domains
Instructions for setting up public keys so rsync won't require a password.
Automate using cron
Create a script in /usr/local/bin/vpop_rsync
, such as:
#!/bin/sh
rsync -avx --delete -e ssh root@<server>:/home/vpopmail/domains/<domain> /home/vpopmail/domains
Make the script executable:
chmod ugo+x /usr/local/bin/vpop_rsync
Create a text file /etc/cron.d/vpop_rsync
with a cron command to execute the sync script:
# Sync the domain at 3am every night.
0 3 * * * root /usr/local/bin/vpop_rsync
Refer to the cron page for further details and cron tricks.
- Log in to post comments