LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-19-2005, 04:12 AM   #1
scoops98
Member
 
Registered: Nov 2001
Location: Cornwall
Distribution: Gentoo, Debian,Knoppix
Posts: 85

Rep: Reputation: 15
Helping setting up a proper backup system


I'm trying to get my life more organised and that has had a knock on effect on the way i organise my computer. I am trying to think of the best to backup my data. I would ideally like a program that can take a 50gig partition and burn it onto multiple DVDS. I used to be able to do this in windoz is there a linux alternative?
Any help will be greatly appreciated.
 
Old 06-19-2005, 10:41 AM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
http://www.partimage.org/
 
Old 06-19-2005, 01:03 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,768

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
http://dar.linux.free.fr/
 
Old 06-19-2005, 04:56 PM   #4
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
http://www.websamba.com/Linux_Docs_Links
-> hardware
-> backup howto

(Some docs)

Sheng-Chieh
 
Old 06-20-2005, 04:40 PM   #5
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
I use tar utility for incremental backups. Here are scripts I use:
Code:
#!/bin/sh

DATE=`date +%y%m%d`
BCKPDIR="/mnt/extra/backup"
VERBOSE=""

if [ "$1" = "--verbose" ]; then
  VERBOSE="--verbose"
fi

if [ ! -d "$BCKPDIR" ]; then
  echo "Directory $BCKPDIR doesn't exist!"
  exit 1
fi

if [ -f "${BCKPDIR}/sys.snar" ]; then
  if [ ! -s "${BCKPDIR}/sys.snar" ]; then
    FN="${BCKPDIR}/${DATE}-sys-0.tar.gz"
  else
    FN="${BCKPDIR}/${DATE}-sys.tar.gz"
  fi
else
  FN="${BCKPDIR}/${DATE}-sys-0.tar.gz"
fi

if [ -f "$FN" ]; then
  echo "File $FN already exists!"
  exit 1
fi

echo "Starting system backup..."
tar -czf $FN -g ${BCKPDIR}/sys.snar $VERBOSE --exclude="proc/*" --exclude="dev/pts/*" --exclude="dev/shm/*" --exclude="mnt/*" --exclude="var/run/*" --exclude="var/tmp/*" --exclude="tmp/*" --exclude="home/*" -C / .
mv -f ${BCKPDIR}/sys.snar ${BCKPDIR}/${DATE}-sys.snar
echo "System backup ended."

echo "Reducing log files..."
find /var/log -type f -name "*.prev" -print0 | xargs -0 rm
find /var/log -type f -exec mv -f "{}" "{}.prev" ";"
echo "Reducing log files ended."
Code:
#!/bin/sh

DATE=`date +%y%m%d`
BCKPDIR="/mnt/extra/backup"
VERBOSE=""

if [ "$1" = "--verbose" ]; then
  VERBOSE="--verbose"
fi

if [ ! -d "$BCKPDIR" ]; then
  echo "Directory $BCKPDIR doesn't exist!"
  exit 1
fi

if [ -f "${BCKPDIR}/home.snar" ]; then
  if [ ! -s "${BCKPDIR}/home.snar" ]; then
    FN="${BCKPDIR}/${DATE}-home-0.tar.gz"
  else
    FN="${BCKPDIR}/${DATE}-home.tar.gz"
  fi
else
  FN="${BCKPDIR}/${DATE}-home-0.tar.gz"
fi

if [ -f "$FN" ]; then
  echo "File $FN already exists!"
  exit 1
fi

echo "Starting /home directory backup..."
tar -czf $FN -g ${BCKPDIR}/home.snar $VERBOSE --exclude="*/Desktop/Trash/*" --exclude="*/shared/*" -C /home .
mv -f ${BCKPDIR}/home.snar ${BCKPDIR}/${DATE}-home.snar
echo "/home directory backup ended."

Last edited by Not now, John!; 06-20-2005 at 04:41 PM.
 
Old 06-22-2005, 01:03 PM   #6
scoops98
Member
 
Registered: Nov 2001
Location: Cornwall
Distribution: Gentoo, Debian,Knoppix
Posts: 85

Original Poster
Rep: Reputation: 15
Thanks

Thank you all for your replies. I will have a look at each one
 
  


Reply


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
Backup Utility *frustration setting in* slackb0t Slackware 2 05-05-2005 04:20 PM
What is the proper way to backup an ENTIRE hdd? FiveFlat Linux - Software 3 12-09-2004 04:08 AM
Proper method to upgrade debian system? xanas3712 Debian 11 05-14-2004 06:19 AM
Proper Partition Style for Linux File System when installing Mandrake 9.2 bobsmith48 Mandriva 5 12-26-2003 07:18 PM
setting the proper time jpbarto Linux - General 2 09-23-2003 06:08 PM


All times are GMT -5. The time now is 02:34 PM.

Main Menu
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