Results 1 to 4 of 4

Thread: Mirror between disk from command

  1. #1
    Join Date
    Apr 2016
    Beans
    356

    Mirror between disk from command

    I use this code to create a mirror between two disk with the same dimension (ssd: 120GB). But this code is not exactly the mirror, but yes the copy all new files from main disk to second disk (backup disk).

    Code:
    cp -auv /home/user/Documents/ /disk/user/120GBMirror/
    Which parameters or command can I use to create a totaly mirror betewwen disk?

    Thanks

  2. #2
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Mirror between disk from command


  3. #3
    Join Date
    Apr 2016
    Beans
    356

    Re: Mirror between disk from command

    Thanks to your help.
    The apt-mirror solve my problem with necessary mirror data between different drives? Can I use this program to do backup data?

  4. #4
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Mirror between disk from command

    backup? read again what you wrote.

    mirror will copy all files even the corrupted ones to the other disk. so if one disk is corrupted the other will be corrupted as well leaving you with no backup. mirroring doesn't serve backup. it serves us in case of disk failure (though in that case RAID is probably a better solution).

    to backup the data you should use versioning (versions). in command line this is easily achieved with programs such as for example rdiff-backup. there is also rsync and some others. if you prefer a GUi there is plenty of such programs (dejadup, duplicati, backintime, areca...). some use a gui to help you setup the backup, recover the files ... and then they create a script which runs per your specification (for example once a week, once a day and once a month).
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Full disk backup (newer kernel -> suitable for newer PC): Clonezilla
    User friendly full disk backup: Rescuezilla

Tags for this Thread

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
  •