If you’ve ever lost data due to a system crash, you know how crucial backing up important files can be. Here are 5 Linux Backup Solutions you should check out. I recommend you implement at least one of these Linux Backup Solutions before it’s too late.
rsync
There are tons of Linux users and administrators out there who have customized rsync scripts to handle incremental backups automatically on a daily, weekly, or monthly schedule. From the manual, rsync is described as a program that behaves in much the same way that rcp does, but has many more options and uses the rsync remote-update protocol to greatly speed up file transfers when the destination file is being updated. The rsync remote-update protocol allows rsync to transfer just the differences between two sets of files across the network connection, using an efficient checksum-search algorithm described in the technical report that accompanies this package.
In centos
yum -y install rsync xinetd
Add xinetd service to system
# chkconfig --add xinetd
Make sure xinetd running on init 3 and 5
# chkconfig --list xinetd
Enable rsync
# vi /etc/xinetd.d/rsync
Change disable = yes into disable = no
Create username and password for rsync client to use
# vi /etc/rsyncd.secrets
root:hispassword
Create configuration and shares for rsync daemon
# vi /etc/rsyncd.conf
———————-
max connections = 2
log file = /var/log/rsync.log
timeout = 300
[shares]
comment = shared data stored here
path = /home/adminname/shares
read only = false
list = yes
uid = root
gid = root
auth users = root
secrets file = /etc/rsyncd.secrets
hosts allow = mac1.hostname.com mac2.hostname.com mac3.hostname.com
———————-
Secure /etc/rsyncd.*
# chown root.root /etc/rsyncd.*
# chmod 600 /etc/rsyncd.*
Restart xinetd
# service xinetd restart
Make sure rsync now running
# chkconfig --list
testing
rsync -a -e ssh /www/backup.tar.gz root@mac2.hostname.com:/home/backup
mondorescue
Mondorescue backs up your GNU/Linux server or workstation to tape, CD-R, CD-RW, DVD-R[W], DVD+R[W], NFS or hard disk partition. In the event of catastrophic data loss, you will be able to restore all of your data [or as much as you want], from bare metal if necessary. Personally, I like using Mondorescue to create DVD disk images of my system periodically. Upon initial installation and configuration of my Linux or Windows machine, I create a DVD disk image with Mondo so that if anything ever gets screwed up, I can pop in the DVD disk and restore back to my original configuration. The mondorescue team is great and the lead developers of the project are very active on the public mailing list offering help to normal users whenever needed.
For CentOS Downloads
http://mondorescue.muskokamug.org/rhel/5/
rpm -ivh afio
rpm -ivh buffer
yum install mkisofs
rpm -ivh mindi-busybox
rpm -ivh mindi
rpm –ivh mondo
After Installation
Rum commands mondoarchive
Amanda
AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that allows the administrator to set up a single master backup server to back up multiple hosts over network to tape drives/changers or disks or optical media. Amanda uses native dump and/or GNU tar facilities and can back up a large number of workstations running multiple versions of Unix. Amanda uses Samba or Cygwin to back up Microsoft Windows desktops and servers.
For CentOS
Step 1:
yum -y install amanda*
Step 2:
after install Modify
/etc/xinetd.d/amanda
/etc/xinetd.d/amandaidx
/etc/xinetd.d/amidxtape
Change Disable = yes to Disable = no.
Step 3:
cp -r /etc/amanda/DailySet1 /etc/amanda/intra
Step 4:
Edit Your Amanda.conf file
/etc/amanda/intra/amanda.conf
Step 5:
Edit /etc/amanda/intra/disklist
Step 6:
Edit hosts file: /etc/hosts
Step 7:
Create backup directory
mkdir -p -m 770 /backup/intra/slots
chown -R amanda:disk /backup
Step 8:
Create tape File
touch /etc/amanda/intra/tapelist
Step 9:
Create slots
su - amanda
cd /backup/intra/slots
for ((i=1; $i<=15; i++)); do mkdir slot$i; done
ln -s slot1 data
Step 10:
Test virtual tapes:
/usr/sbin/ammt -f file:/backup/intra/slots status
Step 11:
Edit .amandahosts to allow communications from clients:
/var/lib/amanda/.amandahosts
Step 12:
Start service
service xinetd start
chkconfig --list
No comments:
Post a Comment