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

Backup Management #4205

Open
ozbrk opened this issue Jul 11, 2022 · 7 comments
Open

Backup Management #4205

ozbrk opened this issue Jul 11, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@ozbrk
Copy link

ozbrk commented Jul 11, 2022

It seems there is no way to run backup operations on UTM. It would be greate to add a feature for that and a manager for backups.

@ozbrk ozbrk added the enhancement New feature or request label Jul 11, 2022
@LostInCompilation
Copy link
Contributor

You can use the "Share..."-function of every VM to export an .UTM file which you can import again. Or what do you mean by backup feature/backup manager?
A backup manager doesn't make much sense in my opinion. Backups should be managed by specialised 3rd party software or TimeMachine.
With your requirement every program would need their own backup manager, which would be quite a mess.

@ozbrk
Copy link
Author

ozbrk commented Jul 16, 2022

For example I need to create a malware analysis lab. Which means I need to make a backup of the current victim VM to return the original state after messing it up quite a little bit. That's what I meant

@LostInCompilation
Copy link
Contributor

You could use "Run without saving changes" for this I think.

@ideologysec
Copy link

ideologysec commented Jul 17, 2022

I think the idea in question is snapshots. Which is something being worked on, but would need to be implemented with APFS files clones. You can get halfway there by duplicating the UTM bundle in Finder when in a known good state, running it, and then shutting down -> deleting -> recopying in Finder.

Track the pull request for the feature here: #3893

@ozbrk
Copy link
Author

ozbrk commented Jul 17, 2022

Yeah sorry for my terminology on that I completely forgot the true term for it and used somthing different.

@KhaineBOT
Copy link

KhaineBOT commented Jan 10, 2023

Are there two things here, one is to create snapshots so you can revert to a known good state, and then the other is support to allow backup tools to create a consistent backup of the virtual machine.

For example, Parallels has a feature called SmartGuard which works to ensure that Time Machine backups are consistent. I think it works by taking a snapshot prior to Time Machine running. The is independent of a users ability to manually create a snapshot.

@jkleckner
Copy link

I returned to a VM after a year (tax time...) and forgot the lesson that "clone" is not a "backup". It modifies the macaddr and UUID.

I happily spent hours cloning (mistakenly as backup) prior to changes, switching to the clone when a change broke something, and finally had a VM that worked. Except that now Windows wouldn't accept the license any more that I bought for this VM.

Perhaps I could have gone into the config.plist and edited it, but at that moment I just reverted to an original backup from Time Machine and gave up on the effort.

It would be super nice to just have a "backup" operation right beside "clone" that just made a copy without creating a new UUID and macaddr. Yes, it duplicates disk hugely, but during an inner loop of experimentation that is fine. Waiting for snapshots is not required for this common use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants