  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/ |
|