Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: What is the command? Or App?

Hybrid View

  1. #1
    TomP
    Guest

    What is the command? Or App?

    Have a dialup modem and have spent hours bringing things up to date, way beyond my 7.2 disks, which I bought two months ago. So I want to back this work up and save it,
    against the utter messup that newbies just seem to make.

    Fresh Linux-formatted partition (hda1) for just this situation.
    I think I need to backup home directory, and /etc and
    poosibly even /root. (Would this save the updates,settings?)

    Now, what app would do this best, and if a Terminal
    command, I am still weak there. Would I have to do
    it in sections of "cp X, cp Y, cp Z" or is there some amazing
    ONE command that would do this?

    I await your expertise. And Thanks.

  2. #2
    nfallon
    Guest

    Re:What is the command? Or App?

    backup -c does a complete backup. backup --help will give you the other options.

    Neil

  3. #3
    JimH
    Guest

    Re:What is the command? Or App?

    Quote Originally Posted by nfallon
    backup -c does a complete backup. backup --help will give you the other options.

    Neil
    backup? Is that a Mandrake thing?

    Jim H

  4. #4
    JimH
    Guest

    Re:What is the command? Or App?

    Quote Originally Posted by TomP
    Fresh Linux-formatted partition (hda1) for just this situation.
    I think I need to backup home directory, and /etc and
    poosibly even /root. (Would this save the updates,settings?)
    Yeah updating a clean 7.2 install can be fun with a modem. Alot of updates are out for it. If you used up2date to update your system the rpm's it downloads are in /var/spool/up2date.

    I would backup /home, /etc, and /var/spool/up2date at least.

    You could use tar and bzip2 for this.

    tar -cjvf whatever.tar.bz2 /etc /home /var/spool/up2date

    I was going to play with improving my bash scripting skills and write a script for this that will let you select the directories you want to backup and exclude certain files or directories. I will get around to this soon I hope. ;D

    Jim H

  5. #5
    TomP
    Guest

    Re:What is the command? Or App?

    Okay, as I see it, here are my steps, guys, and THANKS,
    really for helping..

    I would 1)Name my partition "Backup", possibly
    2) After establishing what needs to be backed
    up, which looks like Home directory, /etc, and possibly
    /root and ???
    3) copy these to a folder and/or TAR them

    4) mount the partition Backup (hda1)

    5) copy folder and/or TAR to this partition
    (NOT QUITE SURE of Command for this)

    and then 6) umount the partition

    and it is done. Am I correct?
    I am such a newbie,
    and don't even try to tell me that anything in Linux
    is intuitive!

    So check me out before I do something wrong.

    Too bad that bash script isn't ready...

    TomP (RedHat 7.2 is my distro)

  6. #6
    nfallon
    Guest

    Re:What is the command? Or App?

    Quote Originally Posted by JimH
    Quote Originally Posted by nfallon
    backup -c does a complete backup. backup --help will give you the other options.

    Neil
    backup? Is that a Mandrake thing?

    Jim H
    OOPS. Sorry. Was looking at the SCO Unix Nutshell by mistake.

    Neil

  7. #7
    TomP
    Guest

    Re:What is the Additional Problem

    You could use tar and bzip2 for this.
    Except that I put the cart before the horse. Unexpected detour. I made the partition, but Linux can't see it, hda1, and so I can't even mount it. And I need to rename it, but I can't mount it to rename it, or is it rename it to remount it?
    It's confusing...Like a Catch-22. Anybody here old enough
    to know what that is? Okay, so I'm an old newbie!
    So, I'm getting to be a cranky old newbie...don't want
    to pass on before I get it running...





  8. #8
    JimH
    Guest

    Re:What is the command? Or App?

    You have to add an entry for the partition in your /etc/fstab.

    Format for an entry:

    device mount point filesytem type mount options fsck dump

    Example:

    /dev/hda1 /whatever ext3 defaults 1 2

    You can also use this format:

    LABEL=/boot /boot ext3 defaults 1 2

    You can add a label to the partition when you create the filesystem. This would create an ext3 filesystem on /dev/hda6, named /example

    mke2fs -j -L /example /dev/hda6

    You can change the label with e2label

    e2label /dev/hda6 /newlabel

    You might look at the manpages for mke2fs, e2label, mount

    Jim H



  9. #9
    TomP
    Guest

    Re:What is the command? Or App?

    Jim and others,
    I successfully added the partition.
    But it was ext2...Hadn't seen your reply here yet.
    When I tried to just change the /fstab (newbie thinking)
    to read ext3 and did a reboot, I got a lot of RED.
    So I changed it back to ext2, and haven't seen a
    problemmounting.
    But haven't actually tried to copy anything to it yet.
    And when I came back here, found this answer on
    how to make the partition ext3...
    Is this necessary? If so, Jim, thanks for anticipating my
    problem. (I used Partition Commander to format the
    partition and it doesn't have an ext3 option,btw.)


  10. #10
    JimH
    Guest

    Re:What is the command? Or App?

    You can change an ext2 partition to ext3 with:

    tune2fs -j device

    Example to add an ext3 journal to hda6 use:

    tune2fs -j /dev/hda6

    Jim H

Similar Threads

  1. Use of yum command
    By suresh_infoguy in forum Linux - General Topics
    Replies: 2
    Last Post: 03-09-2007, 12:10 AM
  2. TAR command
    By vwgtiturbo in forum Linux - General Topics
    Replies: 2
    Last Post: 01-30-2004, 05:53 PM
  3. the 'dd' command...
    By nusjunkie in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 06-11-2002, 07:01 AM
  4. Help with a command?
    By Rastar in forum Linux - General Topics
    Replies: 4
    Last Post: 05-11-2002, 12:09 AM
  5. Looking for Command
    By jmbrinks in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 02-25-2002, 09:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •