Computing.Net > Forums > Linux > Best programs for Backup

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Best programs for Backup

Reply to Message Icon

Name: slowpok
Date: February 26, 2004 at 13:46:08 Pacific
OS: Linux R.H. V8
CPU/Ram: Pllll /256 MB
Comment:

what are some recomendations for Linux programs for DDS drives Tape Backup or Harddrive Backups(on to external hardrive)

Thanks in Advance
Slowpok



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: February 27, 2004 at 07:05:33 Pacific
Reply:

tar (Tape ARchive) has been used for years backing up *nix systems....


0

Response Number 2
Name: heart_debian
Date: February 27, 2004 at 07:23:35 Pacific
Reply:

You don't need any program for that. Just write a simple script to do a backup and put it in your crontab, so it runs daily.


0

Response Number 3
Name: 3Dave
Date: February 27, 2004 at 08:01:12 Pacific
Reply:

eg:

#!/bin/bash
#
# creates backups of essential files
#
DATA="/home /root /usr/local/httpd"
CONFIG="/etc /var/lib /var/named"
LIST="/tmp/backlist_$$.txt"
#
mount /mnt/backup
set $(date)
#
if test "$1" = "Sun" ; then
# weekly a full backup of all data and config. settings:
#
tar cfz "/mnt/backup/data/data_full_$6-$2-$3.tgz" $DATA
rm -f /mnt/backup/data/data_diff*
#
tar cfz "/mnt/backup/config/config_full_$6-$2-$3.tgz" $CONFIG
rm -f /mnt/backup/config/config_diff*
else
# incremental backup:
#
find $DATA -depth -type f \( -ctime -1 -o -mtime -1 \) -print > $LIST
tar cfzT "/mnt/backup/data/data_diff_$6-$2-$3.tgz" "$LIST"
rm -f "$LIST"
#
find $CONFIG -depth -type f \( -ctime -1 -o -mtime -1 \) -print > $LIST
tar cfzT "/mnt/backup/config/config_diff_$6-$2-$3.tgz" "$LIST"
rm -f "$LIST"
fi
#
# create sql dump of databases:
mysqldump -u root --password=mypass --opt mydb > "/mnt/backup/database/mydb_$6-$2-$3.sql"
gzip "/mnt/backup/database/mydb_$6-$2-$3.sql"
#
umount /mnt/backup


and your crontab entry:
1 3 * * * /root/scripts/daily_backup.sh
will run it at 3:01am every night. Add this line using contab -e when root.


0

Response Number 4
Name: heart_debian
Date: February 27, 2004 at 14:11:17 Pacific
Reply:

I find it better to make a no-tar backup without compression, so I can just update it using rsync. It does take more space but its a lot faster to do a backup, and a lot faster to make a recovery. And also, its very difficult to browse the contents of a tar archive, so restoring perhaps a single file is much easier when its not tarred.
Harddisks are getting cheaper every day.


0

Response Number 5
Name: slowpok
Date: February 27, 2004 at 17:34:22 Pacific
Reply:

thanks for your replies

Slowpok


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Best programs for Backup

The program for acc--t managment. www.computing.net/answers/linux/the-program-for-acct-managment-/11424.html

Best Antivirus for Mail Server www.computing.net/answers/linux/best-antivirus-for-mail-server/23207.html

I need a p2p program for linux..... www.computing.net/answers/linux/i-need-a-p2p-program-for-linux/23681.html