timeshift icon indicating copy to clipboard operation
timeshift copied to clipboard

Using Timeshift with raid

Open tony-at opened this issue 7 years ago • 27 comments

I'm having problems when trying to select my software raid partition as a snapshot location for timeshift. It just doesn't appear in the gui. Is it possible to set an ext4 partition on a mdadm raid as a snapshot location?

tony-at avatar Jul 13 '18 11:07 tony-at

Hello, same here with a ZFS raidz1. The drives appear in destination selection (available linux filesystems), but selecting one (which actually doesn't make sense), it says: "No linux filesystem". Greetings

AllKind avatar Jul 16 '18 07:07 AllKind

This is probably not a bug, rather a feature request, anyway +1. Also an ext4 on dmraid shouldn't be a big issue to support. I guess there might be concerns about the availability of zfs/dm/md volumes when you need to perform a recovery... that's maybe why they are excluded.

ctrlbru avatar Jul 17 '18 09:07 ctrlbru

raid 5 here, +1

markist avatar Jul 20 '18 18:07 markist

raid 1 here, +1

brendan-pike avatar Jul 31 '18 06:07 brendan-pike

I need this as well, +1

achmonth avatar Aug 08 '18 13:08 achmonth

Same on my end. +1

ren-kun avatar Aug 10 '18 07:08 ren-kun

Yep. +1

sduensin avatar Jan 04 '19 23:01 sduensin

I have this issue as well. Over 1TB free on my RAID, but no space available in Timeshift for snapshots. The individual drives that make up the RAID are showing but inaccessible, and the RAID volume is not detected. Thanks.

0bron avatar Jan 22 '19 22:01 0bron

+1 for raid 1

coquizen avatar Jan 29 '19 15:01 coquizen

+1 for mdadm raid 10 as well

DutchessNicole avatar Feb 16 '19 12:02 DutchessNicole

I have a 8TB ext4 RAID-10 and I would LOVE if my NVMe could get daily backups to the RAID. The reason is that I'm on Ryzen and also do some other unstable work. Daily backups to the RAID without a custom RSYNC script (as I use now) would be amazing.

ghost avatar Feb 23 '19 23:02 ghost

Up! :)

mateMathieu avatar Jun 10 '19 16:06 mateMathieu

Intel Onboard Raid1 here. Availability on recovery shouldn't be a big issue I guess? +1

badmin-c avatar Sep 15 '19 18:09 badmin-c

just use sudo timeshift --list-devices to list availables devices (including raid partitions) and then sudo timeshift --snapshot-device /dev/mdXXX with correct device name to set your backup destination

The interface still doesn't list the partition but the backup seems ok

pinsonnj avatar Dec 18 '19 11:12 pinsonnj

thanks @Jpjob314! backup is one thing have you tried to restore in raid as well?

PS +1 for raid

KIC avatar Dec 23 '19 09:12 KIC

+1 for RAID, @Jpjob314 did you successfully restore using the method above?

fourstepper avatar Mar 06 '20 07:03 fourstepper

Nope ! Never had to ^^

pinsonnj avatar Mar 06 '20 09:03 pinsonnj

Unfortunate... Now we will never know if it actually works! :D

Thank you though!

fourstepper avatar Mar 06 '20 09:03 fourstepper

Works.

Wikinaut avatar Jan 23 '21 02:01 Wikinaut

Is there a plan, when this issue will become fixed?

Wikinaut avatar Jan 24 '21 15:01 Wikinaut

Does it work with BTRFS RAID? When I list-devices it lists the partition that are in use by the btrfs raid volume, but not the btrfs raid volume itself.

Ikbosh avatar Mar 09 '21 12:03 Ikbosh

I'd really appreciate a solution to this as well. Want to be able to backup my back my 1TB system hard disc onto my 8TB RAID1 discs (which store the /home directory). Can't see the raid partition on the "Select Snapshot Location" page.

NathanSkene avatar Jun 15 '21 11:06 NathanSkene

If someone is interested in adding RAID support please go ahead and submit a PR

teejee2008 avatar Sep 25 '21 04:09 teejee2008

+1 I would love to see it being shown in the ui, but still works fine after setting the raid as destination per command Raid 1 3 Partitions

snoweuph avatar Mar 06 '22 17:03 snoweuph

just use sudo timeshift --list-devices to list availables devices (including raid partitions) and then sudo timeshift --snapshot-device /dev/mdXXX with correct device name to set your backup destination

The interface still doesn't list the partition but the backup seems ok

Does this still work for you? I'm using Ubuntu 21.10 with a software raid 5 array (/dev/md0).

sudo timeshift --list-devices
[Warning] Deleted invalid lock
**
ERROR:arraylist.c:736:gee_array_list_real_get: assertion failed: (index < _size)
Bail out! ERROR:arraylist.c:736:gee_array_list_real_get: assertion failed: (index < _size)
Aborted

stu1811 avatar Mar 08 '22 02:03 stu1811

For me on newest Mint (una) it works with a raid 1 without problems

snoweuph avatar Mar 08 '22 10:03 snoweuph

I was able to fix my problem by modifying one line. Can anyone try this fix?

https://github.com/teejee2008/timeshift/pull/883

stu1811 avatar Apr 04 '22 01:04 stu1811