Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to backup a Kubuntu System partition?

Posted on 2010-09-20
9
Medium Priority
?
854 Views
Last Modified: 2013-12-16
Hi

How to backup a Kubuntu System partition?
I saw Partimage is a solution. But one of my friends told you could also copy all files from the system partioton to another. Will this work to restore the system, is this true?

What is the best practice?

Thanks!
0
Comment
Question by:*** Hopeleonie ***
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 6

Assisted Solution

by:Ferrosti
Ferrosti earned 200 total points
ID: 33718392
I usually don't backup my system like this. Ubuntu is set up very fast, so I usually go for my data as well as my home directory.
Since I play around with my system a lot it is more reliable to set it up and put back my home directory. That's all.

In your case the bootsector won't be backed up, so you'd either have to install it new or really go the partimage way.
0
 
LVL 2

Accepted Solution

by:
mobilescholar earned 1000 total points
ID: 33718493
Partimage is very useful. If you are new to linux, you could try Clonezilla (http://clonezilla.org/) which has a user-friendly front-end to utilities like partimage.

What backup scheme are you going to use (daily, weekly, monthly) and to what medium (an internal/external disk, burn to DVD, tape drive? Is this a business server or a home desktop?

For my home server, I just backup my /home/ directory weekly and just keep an install disk handy (and a list of the system modifications I make).

0
 
LVL 19

Author Comment

by:*** Hopeleonie ***
ID: 33718552
First thanks you both!

@mobilescholar
Home desktop. This is just for testing and fun. :-)
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 17

Assisted Solution

by:gelonida
gelonida earned 600 total points
ID: 33718896
I only make partial backups
- /etc
- /home
- /root


I use rsync for this task.




0
 
LVL 6

Assisted Solution

by:Jelcin
Jelcin earned 200 total points
ID: 33719641
If you want a complete image of a hdd you can use "dd if=/dev/sda(x) of=/home/user/image.img".
You can than mount this image with mount -o loop, offset=x /home/user/image.img /mnt/image.
Or write it to another hdd by changing if target with of target.
This is good if you want a full backup of your hdd including mbr and partition table or a backup of a single partition.
0
 
LVL 17

Expert Comment

by:gelonida
ID: 33719686
Jelcin,

I agree with the dd command
however if I didn't overlook something, then no offset should be specified for the mount command
0
 
LVL 17

Assisted Solution

by:gelonida
gelonida earned 600 total points
ID: 33719813
hopeleonie,

making an image of your system partition is a rather safe way of backing up the system.

However please note, that backing up the system partition means, that the system partition should be mounted read-only (or not at all)


if your system partition isn't too big and and you don't want to backup your system partition too often, then
dd is a nice option.

if you do not intend to perform a loopback mount of your backup, then you could compress it.

Example
dd if=/dev/sda(x) | gzip > /home/user/image.img.gz

this might be useful in case you wanted to store multiple generations of your file system

If you wanted to mount the image file later on, then you had to uncompress it
(However you would need enough disk space on your backup medium to store the compressed AND uncompressed version.

You could also look at fsarchiver, though I never tried it personally
http://www.fsarchiver.org/Main_Page


http://www.fsarchiver.org/Main_Page

0
 
LVL 6

Expert Comment

by:Jelcin
ID: 33719995
Gelonida,

you can use offset if you do a full backup of the complete hdd with several partitions. With offset you can than specify where the single partitions within full hdd backup you want to mount start.
0
 
LVL 19

Author Comment

by:*** Hopeleonie ***
ID: 33728288
Made a mistake want to give 100 points to gelonida ID 33719813. Total 500 Points.

Sorry Moderator!
Leonie
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month8 days, 17 hours left to enroll

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question