LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-28-2007, 05:14 AM   #1
nicolas765
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
system backup HD image


Hello,

I'd like to make an compressed image of my HD (linux/windows 160go). What could i use? and what compression can I expect?
Can i choose what i want to backup? (i.e. everything except *.avi files...)


Regards,

Nicolas
 
Old 02-28-2007, 05:44 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
You've presented two conflicting requirements. An image backup, by definition, is a copy of the physical medium (sector by sector, no filesystem references used). File selection is a filesystem function, and would be a file based backup. You can do either, or both, but one function can't provide the solution because of the conflict.

To do an image backup, you can for example:

Code:
dd if=/dev/hda1 bs=1M | bzip2 -z > backup.compressed
See 'man dd' and 'man bzip2' for options.

To perform a file by file backup, but exclude .avi files:

Code:
tar -v --one-file-system --create --bzip --exclude=*.avi --file backup.tar.bz2 /
See 'man tar' for options.

Last edited by macemoneta; 02-28-2007 at 05:45 AM.
 
Old 02-28-2007, 06:29 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
partimage is nice also for partitions backups.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which image backup program can I use? madking75 Linux - Desktop 13 12-04-2006 06:44 AM
Image Backup econnections Linux - Newbie 2 01-23-2006 07:17 AM
RedHat Image Backup nabil@ccs.com.jo Linux - General 2 01-19-2006 02:49 PM
Backup image with DD prnull Linux - Newbie 3 10-26-2004 03:50 PM
filesystem image backup to CD malbery Debian 2 09-30-2004 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:34 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