LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 09-18-2006, 01:02 PM   #1
wbuik
LQ Newbie
 
Registered: Sep 2005
Distribution: Debian (Sarge)
Posts: 22

Rep: Reputation: 15
Looking for incremental backup solution.


I have a server running Debian sarge, and am trying to find a way to back it's data up automatically, and incrementally if possible. I have already found some simple cron scripts which do incremental backup using only tar, but this server stores email in the maildir format. Because of this the deleted file bug with tar incremental backups is critical.

Does anyone have any suggestions?

-WBuik
 
Old 09-18-2006, 01:33 PM   #2
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
Have you looked at rsync. It can do incremental backups to local or remote filesystems. Not sure about the maildir thing.
 
Old 09-19-2006, 05:44 AM   #3
Jeeves
LQ Newbie
 
Registered: Aug 2005
Location: Dortmund, Germany
Distribution: Gentoo, Mandrake, OpenBSD
Posts: 14

Rep: Reputation: 0
I can suggest rsync or backuppc as a rsync frontend. We are using backuppc to backup all of our staff's pc's and servers at the Uni here
 
Old 09-19-2006, 05:51 AM   #4
filex
Member
 
Registered: Sep 2004
Posts: 56

Rep: Reputation: 15
I used rsync+ssh and backuppc too
 
Old 09-19-2006, 06:21 AM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
rsync is wonderful for such things. Here's a script I wrote and use to do incremental backups on a system of mine:

Code:
#!/bin/bash

PATH=/bin:/usr/bin
BACKUPDIR=/backup/daily

cd $BACKUPDIR
# Don't want or need any cache directories
OPTS=" --delete --exclude cache --exclude Cache"

TODAY=`date +%d%b%y`
YESTERDAYDIR=`/bin/ls -lrt | grep ^d | tail -1 | awk '{print $NF}'`

#echo $YESTERDAYDIR

if [ $YESTERDAYDIR != $TODAY ]
then
  cp -al $YESTERDAYDIR $TODAY
else
 echo Retrying Unfinished Backup
fi

rsync $OPTS -a /home /etc /var /$BACKUPDIR/$TODAY

# Make $TODAY the most recently modified directory
# so it will be easily found tomorrow
touch $BACKUPDIR
touch $BACKUPDIR/$TODAY
I then have a separate script to delete any files older than the amount of days I need to have around. Place above script in cron to run daily, weekly.. your choice but you'd have to modify it a little if not run daily.
 
Old 09-19-2006, 05:56 PM   #6
wbuik
LQ Newbie
 
Registered: Sep 2005
Distribution: Debian (Sarge)
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for all the help.
 
  


Reply

Tags
backup


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
About incremental backup satimis Linux - Software 0 06-15-2006 05:01 AM
incremental backup .... redrobin77 Linux - Software 1 01-31-2006 06:29 AM
rsync incremental backup sachin_keluskar Linux - Software 1 06-29-2005 03:09 AM
How to take incremental Backup in postgres minil Linux - Software 1 05-11-2005 05:47 AM
incremental backup reaky Linux - Software 3 03-10-2004 04:02 PM


All times are GMT -5. The time now is 12:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration