rsync

Backups

Mirror/backup your vpopmail domains to another Qmail server. Run it through cron and have a hot-backup server ready for action in case your main server crashes.

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

Technology:

rsync Mirroring

http://www.howtoforge.com/mirroring_with_rsync

Source Server Configuration
Create an unprivileged user that can access the files you want and give that user a password:

useradd -d /home/mirror -m -s /bin/bash mirror
passwd mirror

Switch to that user and go the home directory:

su mirror
cd ~

Create a few test files:

touch test.txt help.txt mirror.txt

Destination server
Test rsync the connection to the remote server:

Technology:

Subscribe to RSS - rsync

Recent Updates

  • 11 months 1 week ago
    1.27.2 update
  • 11 months 3 weeks ago
    Drupal 10/11 config
  • 11 months 3 weeks ago
  • PHP
    11 months 3 weeks ago
    PHP 8.3.11 and AlmaLinux
  • 11 months 3 weeks ago
    New version of Pound
Error | Production Monkeys

Error

The website encountered an unexpected error. Please try again later.