0

I'm having issues with my Ubuntu Server installation, updates crashing my server, so I'm thinking in using raid as kind of backup, if it's possible...

So the first step it's to put an additional hdd in the server, and configure Raid 1. I'll try to follow this guide, but I have 2 questions about the answer in the thread. Setting up RAID 1 on 14.04 with an existing drive

1 - Complete format the new drive with one partition, or I need to have the exact schema of the original drive?

2 - Copy everything? Like CP command from / to / ?

After this, how can I configure the ReSync process? The main objective it's to have a complete copy of the stable system, so if I update something, change something on the server, I want to force to manually resync, or have an configured hour to do the resync, like end of the day, it's this even possible?

I don't know if this the best solution to what I want, is a protection for hdd failure, but my main purpose is to keep a kind of backup of the complete system, and be able to "rollback" if anything go wrong with the it.

Thanks

4
  • RAID is not a backup solution and will not (realistically) allow “rollbacks” in the manner you’re thinking. If you need snapshots and rollbacks, consider rebuilding the system with ZFS, then enable ZFS replication. Send your snapshots to an external system somewhere on the network (it doesn’t need to be powerful). Then, if an update messes things up, you can roll back to any point where a snapshot exists. Is less painful in the short and long term.
    – matigo
    Aug 11, 2021 at 23:52
  • So this is a Ubuntu Core 18 server? Ubuntu has used the year format to represent snap only products since 2016, which are different systems to the more common year.month format or 18.04 system (18.04 format tells you the system is deb package based).
    – guiverc
    Aug 12, 2021 at 0:08
  • @matigo Thanks for the ZFS info, I'll take a look One quick question, can I for example, create some kind job/script, that for instance, once a week, the system performs a restart (cron job) and before booting, run the dd command to make a complete copy of the hard drive? Or there's no change that I could make a valid backup using this method?
    – MckPT
    Aug 12, 2021 at 9:58
  • You would like to run dd before the system boots? This would require a second machine to have complete access to the disk your server runs on. If the server uses a SAN or is VM-based, then it may be feasible if you have physical access to the machine. Otherwise, a more specific backup methodology will be required.
    – matigo
    Aug 12, 2021 at 10:04

0

You must log in to answer this question.

Browse other questions tagged .