O'Reilly logo

Linux Email: Set up and Run a Small Office Email Server by Patrick Ben Koetter, Magnus Back, Alistair McDonald, Carl Taylor, David Rusenko

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configurations

There are two approaches to the backup of configuration data:

  • Store the data on your backup media: This approach will be described here first.
  • Store the data in a repository on a remote machine: This approach (using Subversion) will be described later in the chapter.

Backing Up Configurations on Backup Media

To keep it simple, we just use the tar tool to create an archive of the whole directory tree, /etc, and store it in the same directory as the full dump or incremental dumps on the backup server:


% tar cfj /etc /backupdirectory/subdir/etc.tar.bz2

If /backupdirectory/subdir/ is not mounted using NFS or SMB, we need to create the tar-Archive locally and scp it over:


% tar cfj /etc /tmp/etc.tar.bz2
% scp /tmp/etc.tar.bz2 user@backup-host.domain.com ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required