Results 1 to 6 of 6

Thread: backup /

  1. #1
    Join Date
    Jul 2014
    Location
    Athens
    Posts
    83

    Default backup /

    Hi,
    What is the best way to do a complete back up of the system ( / partition)
    using a USB disk(only one NTFS partition) or a NAS device(NFS server) that i have in home

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,241

    Default Re: backup /

    The best way depends on your needs.
    • I would say backup to a true Linux file system is much better then to a non-Linux one like NTFS, because in the second case you will of course loose all your owner/group and permission information, which I do not value as a good backup. (and you can of course put a Linux file system like ext2/3/4 on that USB disk, why using NTFS for that?)
    • backup to another system (preferable in another room or even other building) increases of course the chance that you still have your data after e.g. a fire enormously.


    But you could also ask yourself why you want a backup of all files of your / partition (assuming you have a separate /home and maybe more separate file systems for eventual other user or application data). I e.g. only backup all in /etc (and in /srv because I run a HTTP server). In case of an emergency, I will reinstall the system (I have of course written down how and what I did during installation and later) and then use the /etc backup to reconfigure.

    If you really want to go for a complete backup of your / (system) partition, then cloning might also be an option. It asks maybe for some extra actions in configuring Grub on recovery, but you do have then all and everything in one.
    Henk van Velden

  3. #3
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,760

    Default Re: backup /

    Be aware that some root directories are virtual files you do not want to back those up some virtual files are as large as the whole CPU address space

  4. #4
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,741
    Blog Entries
    3

    Default Re: backup /

    Quote Originally Posted by dimistat71 View Post
    Hi,
    What is the best way to do a complete back up of the system ( / partition)
    using a USB disk(only one NTFS partition) or a NAS device(NFS server) that i have in home
    Personally, I would use "dar" for that. I would run that from the command line, possibly booted to the live rescue CD. (I have the live rescue CD on a USB, and have installed "dar" on it). However, I usually only backup "/home". In a disaster, I prefer to reinstall rather than recover from backup, for the root partition.

    The thing about "dar" and similar utilities, is that it creates an archive file with all of the unix permissions as data within that file. So using NTFS for the backup won't lose any unix permissions.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  5. #5
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,741
    Blog Entries
    3

    Default Re: backup /

    Quote Originally Posted by gogalthorp View Post
    Be aware that some root directories are virtual files you do not want to back those up some virtual files are as large as the whole CPU address space
    If I want to backup the root partition on a running system, I will do:

    Code:
    # mount --bind / /mnt
    and then backup "/mnt". The bind mount does not contain those virtual file systems such as "/proc" so I would be avoiding that problem. When done, I would unmount.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: backup /

    On 2015-04-26 16:26, nrickert wrote:

    > The thing about "dar" and similar utilities, is that it creates an
    > archive file with all of the unix permissions as data within that file.
    > So using NTFS for the backup won't lose any unix permissions.


    Another possibility would be using clonezilla.

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

Posting Permissions

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