Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Backup Partition Command

Posted on 2003-11-09
9
Medium Priority
?
622 Views
Last Modified: 2013-12-16
I am running Debian 2.4.18.  I have only one Linux partition on a HD with Windows partitions.  Is there a command I can use to backup the entire Linux partition to a mounted Windows partition?
0
Comment
Question by:Gnustome
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 9

Accepted Solution

by:
svenkarlsen earned 800 total points
ID: 9711811
Hi Gnustome,

Use tar. Make a backup strategy and don't just backup root, - leave out all the noise (/dev, /Lost+Found, /temp, and so on....).

Itll take you a couple of days to make a good set of working scripts, - some to use daily and some to use every week or forthnigth. After having made the scripts, test them.

When you think they are working, try restoring the contents to some other location, - your backup is worth nothing if you haven't tested that you can use them for restore.

Make symlinks from the scripts to your CRON-dirs, so you don't have to think about it any more after that.

You should read the man and HOWTO, but here's a little inspiration for some of it:

 (put this in a shell script):

# Name of the backup tar target dir where the backup is made

    TarTargetDir=[put your windows dir name here]

# Name of the backup source (what you want to back up)

    SourceDir=/


# The switches used in tar-call :
# a=append, c=create, W=verify, v=verbose, z=filter through gzip
# P=don't remove leading '/', - for backing-up dirs at root

    TarSw='czWP'


    # Tar the desired files, - output to a .....run.log:
        /bin/tar -$TarSw -f $TarTargetDir/backup.tar $SourceDir


Kind regards,
Sven
0
 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 300 total points
ID: 9711853
Have a look at the following tools:

http://rdiff-backup.stanford.edu/

or you can use the following command

cpio
tar
dump

do a man on the above command to learn more

also:

http://oldlook.experts-exchange.com/Operating_Systems/Linux/Linux_Administration/Q_20689454.html

(PS: if you want to do regular backup rsync is another handy tool)
0
 

Author Comment

by:Gnustome
ID: 9712169
So if I just backup the important stuff and leave out all the noise, and I then experiment with a potentially dangerous procedure like enableing UDMA 100, and it backfires, could I boot from a floppy, restore from the backup, and be back up and running?
0
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.

 
LVL 12

Assisted Solution

by:paullamhkg
paullamhkg earned 100 total points
ID: 9712490
0
 
LVL 9

Expert Comment

by:svenkarlsen
ID: 9712825
Gnustome,

> could I boot from a floppy, restore from the backup, and be back up and running?

things are not quite that simple, have a look at the link from Paul.


Sven
0
 

Author Comment

by:Gnustome
ID: 9715398
Sven, you are right: Things are not as simple as I first thought.  But my goal is this: In case of catastrophe, I want to restore everything to it's original condition.  So, assuming HD space and the number of CDs are not problems, couldn't I back up root.  Then if catastrophe occurs and my filesystem gets trashed, I could do a minimal install of Linux to the same partition to restore the partition structure, then detar and ungzip the backup file, and finally copy it to root?
0
 
LVL 9

Expert Comment

by:svenkarlsen
ID: 9715470
Gnustome,

yes, you can restore a backup from CD (again: have a look at the links above for the procedure). But remember to think about how you split the stuff up on your CD's, - you probably can't get it all down on one ;-)


Sven
0
 

Author Comment

by:Gnustome
ID: 9716585
Thanks.  But my real question is: Can I renew the file system by doing a minimal Linux install, thus running fdisk and format in the process, then copying the backup file to root?
0
 
LVL 9

Expert Comment

by:svenkarlsen
ID: 9717041
Sorry Gnustome,

it's against my policy to make so absolute statements as the one you ask for.


;-\

Sven
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

636 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