republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » All Things Unix » Linux Backup Script
Search Topic:
Uniqs:
699
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
OK trying to convince a complete NEWBE for a PC »
« A shot across the bow?  
AuthorAll Replies


joako
Premium
join:2000-09-07
Gainesville, FL

Linux Backup Script

Can someone recommend a pre-written script/program to backup a Linux machine? I want this to be fully automated and I only need to backup a few directories with key configuration files and data files... nothing fancy but it would be very nice if it wasn't one big bash script.
--
09:F9:11:02:9D:74:E3:5B:D8:41:56:C5:63:56:88:C0


graysonf
Premium,MVM
join:1999-07-16
Fort Lauderdale, FL
Why don't you try googling on:

Linux Backup Script

I'm sure that after reading some of that stuff, you'll find something you can use.


jdong
Eat A Beaver, Save A Tree.
Premium
join:2002-07-09
Rochester, MI
clubs:

reply to joako
Every solution I've seen is pretty complex. I've played with a lot of backup tools and found two satisfactory workflows for Linux:

(1) XFS and xfsdump.

(2) rsync with --link-dest (i.e. hardlinking)

Day 0:
rsync -avx --progress /source /dest/backup.day0

Day N:
rsync -avx --progress /source /dest/backup.dayN --link-dest /dest/backup.day(N-1)

This will do incremental backups on any system that supports hardlinks; you will have one folder per backup point, and only modified files are rewritten. I love this setup because every backup point is immediately accessible using standard tools.

The tool rdiff-backup can achieve the same effect but with delta-compression between differences, but you only get the top-level flat-directory view of the latest snapshot, you have to use various rdiff-backup commands to extract older snapshots from the archive.
--
Ubuntu MOTU Developer and Forums Council


visitor_

@proxad.net
reply to joako
How about rsnapshot?

»www.rsnapshot.org/


joako
Premium
join:2000-09-07
Gainesville, FL

reply to joako
I want nothing to do with hard links, rsync or even NFS. Script to create an archive, prefer .tgz, and then copy that archive via FTP, SCP, SSH (perfer encrypted but then again half these backups will be on the local lan or via a VPN)

The biggest thing that needs to be backed up is a quickbooks file.
--
09:F9:11:02:9D:74:E3:5B:D8:41:56:C5:63:56:88:C0


gquiring
I Did It My Way
Premium
join:2001-04-07
Matawan, NJ

reply to joako
This is what I use to backup my RH server:

DESTDIR="/u/backups/mail"
DESTSERVER="dev1"
LIST="/usr/local/bin/backup.list"
DOW=`date +\%a`

echo "Start: `date`"
tar -czf - --files-from $LIST|ssh $DESTSERVER "cat > ${DESTDIR}/mail_${DOW}.ztar"
echo "End: `date`"

DESTDIR is where it's located on the 'other' server
DESTSERVER is the 'other' server
LIST is a a flat text file of what to backup

Files are compressed in tar format.


bgrundy

join:2002-01-25
Sykesville, MD
reply to joako
FWIW, I like Flexbackup. Edit the simple conf file and off you go.
--
"If you continue to use Windows, your system may become unstable" --BSOD


rolande
Certifiable
Premium,Mod
join:2002-05-24
Powell, OH
clubs:

Host:
Linksys
AT&T Midwest
reply to joako
Here is what I put together to grab my home directories, databases, and other config data nightly and dump it to a NAS box on my local network. I just run it via cron and get an email each day with the job output.

I do a full backup on Sundays and an incremental backup every other day of the week.


--
Ignorance is temporary...stupidity lasts forever!

»www.thewaystation.com/
»blog.thewaystation.com/
-
Forums » Tech and Talk » OS and Software » All Things UnixOK trying to convince a complete NEWBE for a PC »
« A shot across the bow?  


Saturday, 30-Aug 05:19:50 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 9 years online! © 1999-2008 dslreports.com.
page compression OFF
Most commented news this week
· [332] Comcast 250GB Cap Goes Live October 1
· [223] FBI To Allow Warrantless Investigations
· [156] Industry Reacts To Comcast Cap Plans
· [130] AT&T Thanks Democrats For Telecom Immunity
· [123] Time Warner Cable Cripples TiVO, Gets FCC Fine
· [120] Why Run FTTH When You Can Pretend You Do?
· [72] Friday Open Thread
· [67] Telus CAPS 'Unlimited' EVDO Data Plans
· [65] Game Publishers Follow The RIAA's Lead
· [60] Qwest Defends Not Running FTTH
Most people now reading
· Comcast has new Acceptable Use Policy besides the 250GB cap [Comcast HSI]
· Bandwidth Monitor for Computers-Suggestions? [Comcast HSI]
· Antivirus XP 08 [Security]
· Battlegrounds Auto-queue, Auto-Join Add-ons [World of Warcraft]
· These Ducks Quack !!! [Wireless Networking]
· Hurricane Gustav [Weather]
· [Vonage] SIP credentials, RTP300, GPP_K? [Vonage]
· iTunes 5.0 loads Bonjour Service [Security]
· Harley Davidson bikes should be banned [Rants, Raves, & Praise]