Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a way to perform a backup from a drive #266

Open
jviotti opened this issue Apr 8, 2016 · 46 comments

Comments

Projects
None yet
@jviotti
Copy link
Member

commented Apr 8, 2016

From #265

This option would copy whatever there is on the device as a local *.img file, and will compress it as a ZIP archive, in a way that can be easily burnt back with Etcher.

Front logo Front conversations

@jviotti

This comment has been minimized.

Copy link
Member Author

commented Dec 5, 2016

I just had some ideas for this: The problem at the moment is that blindly copying the device contents back means copying a lot of unnecessary data and having a backup image that equals the drive size. If you want to flash that back to a drive that is smaller, but in which the image logically fits, you'll have a hard time figuring out how to reduce appropriately.

As a solution, we can scan the partition table and only copy what is really necessary.

@lurch

This comment has been minimized.

Copy link
Contributor

commented Dec 5, 2016

As a solution, we can scan the partition table and only copy what is really necessary.

I thought I'd already suggested that, but maybe I'd imagined it and it was something I was going to suggest, but forgot to 😕
Sounds good 👍

@jviotti

This comment has been minimized.

Copy link
Member Author

commented Dec 5, 2016

Haha, maybe it was on another related issue and it somehow got lost?

@alexandrosm

This comment has been minimized.

Copy link
Contributor

commented Dec 7, 2016

@jviotti, reading this again, I think you're making your life difficult. We can start with a "dumb" imaging process, and improve on that later

@lurch

This comment has been minimized.

Copy link
Contributor

commented Dec 7, 2016

Reading the partition table to determine how much of the disk to actually read, and simply outputting a smaller diskimage at the end of the process, isn't that complicated IMHO :-) It's only a small part of the process, so I'd see no reason to leave it out.

@jviotti

This comment has been minimized.

Copy link
Member Author

commented Dec 7, 2016

@alexandrosm The thing is that copying back the whole thing could bring a lot of issues in the case of Etcher. Most users get away with it using something like dd, since dd will only copy what it can and discard the rest (so doing a backup of the whole thing causes no issues most of the time), however Etcher will complain in that case, which means users can only backup drives that they will re-flash to the same drive or a larger one.

Maybe I'm indeed overthinking it and that's not an usual scenario (maybe people only re-write the backups to the exact same drive most of the time), but if it is, Etcher would feel really awkward.

@alexandrosm

This comment has been minimized.

Copy link
Contributor

commented Dec 8, 2016

@agsdot

This comment has been minimized.

Copy link

commented Jan 24, 2017

Any updates/progress on this issue @jviotti?

@blinkenlight

This comment has been minimized.

Copy link

commented Jan 24, 2017

This would be pretty important for me too - I'd just be doing backups and restores (if needed = I screw up) on the same card anyway.

@jviotti

This comment has been minimized.

Copy link
Member Author

commented Jan 24, 2017

Hey there,

We are sadly not making progress on this one now given that we're preparing some other major features for a new release. This is something we really want to support, so we'll definitely allocate some time for this soon.

That being said, if anyone is motivated enough to make this work, we welcome contributions to https://github.com/resin-io-modules/etcher-image-write, and then to integrate it with the UI (ping me on Gitter if you're interested and I can provide guidance to implement this)

@adammhaile

This comment has been minimized.

Copy link

commented Jan 1, 2018

+1

@xristocodos

This comment has been minimized.

Copy link

commented Jan 16, 2018

So even though most people aren't writing the image back to the exact same drive (usb id), they are most certainly moving it to the same SIZE of drive or greater. Just make a disclaimer and fade out the Begin! button (or whatever) if it doesn't detect an adequate size. Cramming images into smaller drives is a dicey tricky artform that I personally don't believe anyone expects Etcher to perform. I'd just put a disclaimer saying that 0.) this feature is somewhat experimental, 1.) the drive must be equal or larger capacity, and 2.) if it is bigger, it will "appear as" the size of the image, until its reformatted at some point.

If someone needs to copy an 8gb uSD stat and all they have is a 16gb usb stick, chances are they're not really concerned about the extra space, they probably just need the image duped asap due to lack of time or availability (prompting the backup/copy in the first place).

@sunapi386

This comment has been minimized.

Copy link

commented Jan 19, 2018

Do we have an ETA on this?

@lurch

This comment has been minimized.

Copy link
Contributor

commented Jan 19, 2018

This is a feature we'll need for https://etcher.io/pro so it'll probably get added sooner rather than later ;-)

@KerstinMaur

This comment has been minimized.

Copy link

commented Feb 28, 2018

Etcher Pro and this feature are awesome! 😍
Looking forward to them! 🧐

@mirceal

This comment has been minimized.

Copy link

commented Jun 24, 2018

+1

Any update on this?
Thanks

@jhermsmeier

This comment has been minimized.

Copy link
Contributor

commented Jul 2, 2018

Sure, the technical foundation is pretty much there, and the user interface part is being worked on soon, and this will most likely end up in the next release :)

@MDM63

This comment has been minimized.

Copy link

commented Aug 11, 2018

Is this going to be a feature for Etcher or only for Etcher pro?

@jhermsmeier

This comment has been minimized.

Copy link
Contributor

commented Aug 28, 2018

@MDM63 This is going to be available in both Etcher & Etcher Pro; generally both of them will maintain feature parity in regards to the writing process.

@cjcharles0

This comment has been minimized.

Copy link

commented Sep 11, 2018

I dont want to appear ungrateful as I definitely am(!!!!!), but is there an ETA on this yet? Such a useful feature for me (even if it doesnt scan the partition table to avoid copying blank space)

@TommySharpNZ

This comment has been minimized.

Copy link

commented Sep 14, 2018

+1 for this feature too please!

@kriekprinsloo

This comment has been minimized.

Copy link

commented Sep 15, 2018

@Orrison

This comment has been minimized.

Copy link

commented Oct 16, 2018

+1 for this! Can't wait, thank you folks for all you do!

@inovek

This comment has been minimized.

Copy link

commented Oct 18, 2018

+1

@richardhughes260

This comment has been minimized.

Copy link

commented Nov 3, 2018

Is there an ETA on the backup feature?

@ddomit

This comment has been minimized.

Copy link

commented Nov 9, 2018

+1 Any news?

@dhowe

This comment has been minimized.

Copy link

commented Dec 24, 2018

progress?

@JaffaBoy

This comment has been minimized.

Copy link

commented Jan 26, 2019

hows this coming along?

@boelle

This comment has been minimized.

Copy link

commented Feb 4, 2019

yep... seems a shame that we can create an image from the sd card :-(

@Poincare1

This comment has been minimized.

Copy link

commented Apr 16, 2019

Any progress in being able to create an image from flash media? Seems it was reported more than a year ago it would be an upcoming feature.

@sunapi386

This comment has been minimized.

Copy link

commented Apr 26, 2019

Clonezilla is a capable alternative, if you don't mind rebooting booting from USB and waiting. It's not bad if you dedicate a Raspberry Pi to do it. https://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/01_Save_disk_image

Clonezilla source code and see example bash scripts for cloning in "samples" folder. https://gitlab.com/stevenshiau/clonezilla.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.