LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-07-2006, 04:55 AM   #1
jeucken
Member
 
Registered: May 2002
Location: Alphen aan den Rijn, The Netherlands
Distribution: SuSE 10.1
Posts: 87

Rep: Reputation: 15
Backup of personal files


Hi,

I'm running a SuSE 10.1 installation that acts as fileserver, FTP server en webserver.

It has 2 hard drives.
One is the 'system disk' (40 gigs - ext3)
The other is the 'data disk' (40 gigs - reiser) (mounted as /fileserver)

/fileserver is shared by Samba so it is available to my Windows PC. The dir has about 18 gigs of files.

What I would like to do is to make a backup of the fileserver dir and store it on the 'system disk' (it has about 28 gigs free).
I also want to run incremental backups so I won't have to keep making full backups all the time.
And, if it's possible I would like to split up the backup to files of about 4 gigs so it's easy to burn to DVD.

I think TAR is the best way to go here, but what would be the best way to use it?

I've found this little script searching through the forums:
Code:
#!/bin/bash

DATE=`date +%Y%m%d`
DIR="/backups/test/vol1R/current/"
BACKUPDIR="/backups/test/vol1/"

tar czvf - ${DIR} > ${BACKUPDIR}backup${DATE}.tar.gz
That would create a full backup.
But how will I do a Incremental backup?
And how do I split it up into seperate files for DVD burning?
 
Old 09-07-2006, 06:22 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Take a look at Dar (http://dar.linux.free.fr/). It has backup scripts (you can also write your own).

Dar allows you to make on monolithic backup, and split it later, or split as you backup. Restore is quite easy. File compression is good (my SuSE installation of 7 Gig compresses to about 3 Gig).

You can specify files to not compress (by file size or file extension).

The Dar tutorial has step by step instructions and command examples to use in creating your own script.

You can easily make full and incremental backups.

Dar archives each file individually, so that if one file is corrupt, you only loose one file. Unlike tar, in which you may loose the entire archive.

There is also a GUI frontend to Dar, called Kdar.
 
Old 09-07-2006, 06:37 AM   #3
jeucken
Member
 
Registered: May 2002
Location: Alphen aan den Rijn, The Netherlands
Distribution: SuSE 10.1
Posts: 87

Original Poster
Rep: Reputation: 15
Thanks

I'll look into it this evening.
 
Old 09-07-2006, 06:50 AM   #4
motin
LQ Newbie
 
Registered: Apr 2006
Posts: 14

Rep: Reputation: 0
I'd bet on KDAR as well. It does a hell of a good job creating complex dar commands through a great GUI. I am writing a wiki article (http://wiki.motin.eu/BackingUpALinux...KillerStrategy) about using kdar for a total system backup. It will be finished in a couple of weeks. Feel free to share your experiences as well.
 
Old 09-07-2006, 09:21 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
I use kdar / dar for my personal system backups. Works nicely.

This is the list of file extensions I exclude from compression (because they're already compressed and re-compressing them takes a lot of time and yeilds minimal space saving):

Code:
*.avi *.bz2 *.gif *.gz *.jpg *.JPG
*.mp3 *.mpg *.mov *.ogg *.ogm *.png
*.qt *.rar *.rm *.sf2 *.sfpack *.tgz
*.wmv *.zip
If anyone can suggest more I'd like to see them - every time I backup I sit there watching some big ugly files spinning the CPU and not getting any smaller, and then afterwards I forget what they are!
 
  


Reply



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
Lost all personal files bobinglis Linux - Security 10 07-06-2006 08:52 AM
Can I keep personal files from /home when installing another OS? tigerpatch Ubuntu 2 05-31-2006 09:45 AM
Preserving personal files between distros thomasfingram Linux - Newbie 1 08-13-2005 09:06 AM
I just want to save files! (SuSE 9.1 Personal) Slyder42 SUSE / openSUSE 2 11-27-2004 11:35 PM
Full system backup Suse Personal 9.1 markbaravelli SUSE / openSUSE 4 11-13-2004 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:45 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
Open Source Consulting | Domain Registration