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/12/2009 - 11:37
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/domainsInstructions 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/domainsMake the script executable:
chmod ugo+x /usr/local/bin/vpop_rsyncCreate a cron job to run vpop_rsync:
- Systems with
/etc/cron.d(i.e. RedHat, CentOS, etc.)
Create a text file/etc/cron.d/vpop_rsync:# Sync the domain at 3am every night.
0 3 * * * root /usr/local/bin/vpop_rsync - Systems without
/etc/cron.d(i.e. FreeBSD):
Add the command tocrontab:crontab -e
0 3 * * * root /usr/local/bin/vpop_rsyncRefer to the cron page for further details and cron tricks.
- Log in to post comments