12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

230CHAPTER 10Techniques for Backup and Recoverydirectory of the amanda user on the client is set to /var/lib/amanda/, and the file/var/lib/amanda/.amandahosts already exists with localhost and localhost.localdomainalready configured as possible Amanda servers. List each Amanda server on separate linesin the following format: amandawhere is the hostname or IP address of the Amanda server. If using a hostname,the client must be able to resolve it to an IP address. The username amanda followsthe hostname to list the username under which the backups are done. This correspondsthe dumpuser value in amanda.conf on the server.Finally, the amanda xinetd service must be started on clients. Configure it to start automaticallyat boot time with the chkconfig amanda on command as root. Because it is anxinetd service instead of a standalone daemon, make sure it is also enabled at boot timewith the chkconfig xinetd on command as root. Restart xinetd with the service xinetdrestart command at root to enable Amanda immediately. If you are not already usingxinetd, be sure the other xinetd services are disabled if you do not want them to beturned on, and then start xinetd with the service xinetd start command.Executing the BackupTo start the backup process immediately, use the following command on the Amandaserver, replacing DailySet1 with the name of your configuration:su amanda -c “amdump DailySet1”This command can be used to immediately start a dump for testing or to create the first setof backups. After that, cron can be configured to run the backups at the desired intervals.The su amanda part of the command is used to run the process as the amanda user. If youare the root user when you execute this command, you will not be prompted for amandauser’s password. If you are a non-root user, you will be prompted for the amanda user’spassword. However, a password was not created when the amanda user was added. If youwant the amanda user to have a password, execute the passwd amanda command as rootto set it.The amanda-server package installs a sample cron task file at /etc/amanda/crontab.sample, which contains the following:# This is an example for a crontab entry for automated backup with amanda# With these cron lines, Amanda will check that the correct tape is in# the drive every weekday afternoon at 4pm (if it isn’t, all the# operators will get mail). At 12:45am that night the dumps will be run.## This should be put in user operator’s crontab#0 16 * * 1-5 /usr/sbin/amcheck -m DailySet145 0 * * 2-6 /usr/sbin/amdump DailySet1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!