Re: [qubes-users] Qubes VM snapshots using git / SVN

2016-12-05 Thread Chris Laprise

On 12/05/2016 09:06 PM, Patrick Schleizer wrote:

Why I used git:

* I found it simpler and quicker to type to manage the whole
/var/lib/qubes/vm-templates/vm-name including all files using git rather
than manually that folder.


Using LVM or Btrfs snapshots would accomplish this far more quickly and 
efficiently. Its also much closer to standard practice for managing disk 
volumes.


On Btrfs, if I wanted snapshots to contain a certain folder, I could 
make that folder into a subvolume and then start snapshotting it. 
Alternately, I could forgo subvolumes and use 'cp --reflink source dest' 
to create COW copies.


LVM is less flexible and requires more commands, but your system may 
already be setup with it and it would at least give you snapshots 
without any need to copy large volumes of data unnecessarily.


Chris

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/75ebfdfa-a3c4-a1e3-7d49-2a05a9ec344e%40openmailbox.org.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Qubes VM snapshots using git / SVN

2016-12-05 Thread Patrick Schleizer
Why I used git:

* I found it simpler and quicker to type to manage the whole
/var/lib/qubes/vm-templates/vm-name including all files using git rather
than manually that folder.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/8c2188b6-2b95-2cd8-4672-dc2df92957a4%40riseup.net.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Qubes VM snapshots using git / SVN

2016-12-05 Thread Andrew David Wong
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On 2016-12-05 12:03, Patrick Schleizer wrote:
> Has anyone used git / SVN on huge Qubes templates (in case they break
> during upgrades or for development purposes) for snapshot / rollback
> purposes and can can share some tips (for speeding git it up)?
> 
> (Since qvm-revert-template-changes works only on templates and can
> revert only to the previews state, not any after multiple VM restarts.)
> 
> (Previously posted here:)
> https://forums.whonix.org/t/qubes-vm-snapshots-using-git-svn
> 

What are the pros and cons of managing templates under Git (as opposed
to, say, manually `cp -r`ing a template directory)?

Pros of Git:
 * Organization (timestamps, metadata, commit messages, etc.)
 * Saves disk space? (can't be much, since Git has to store every
   distinct binary file)

Cons of Git:
 * Complex operations performed in dom0 (non-zero security risk)
 * A lot slower than `mv`

Is this accurate? Are there others?

- -- 
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-BEGIN PGP SIGNATURE-

iQIcBAEBCgAGBQJYRheRAAoJENtN07w5UDAwKJgQAKGDVbcobfdLqPePDLk/QeVu
2hmYvl57EEiRbjGme5EKxGsu/aZD6/Oqeb4NN1XjGWGk4V5YHaYJUoeoRB5aFgWo
NXykuuCcAhbmTCBhJsarczvfOm09LpynUYOm77vqyrNsQZe9V/2EerkUb7U7mUrJ
E8xTJcAzSTKAEQXCsp98kuKgzI2OOJ6frBIcA1u5xlaYKkSskfr85hF+xIuD/cWm
ZD2Mdz/R7uoNqah/x/sQVaxlwjGR8e6+SG06Oz5hfRBCtV4JS/qgCtP/gD5zwDtW
F2zMXzAtGVttSCAdj44AcxMTArywLRrQXQhxBeNCqsEUBHZYLsjQvN3XSYm9dteF
PFDe1GsIOKCOIyebO6dsdeUWhByncLhYCxFXBQGLykSKP894CP6WCJm9LB1SxuqX
ZwiFZDOlAVPi8tDPcNAMf9FEoshdZ/l/Z6gm2XgB2ettmgN6Uy2QqJ3jvkE4XEIM
8Kep2HORQ4/3kd0LNXuN1as0eNNQ9cRKKMA2fSwfU/zlZLB2QvDtKs3wP6HO5eUx
8cODVfJTQsToyZYwGLYKERFxTZKz8Lows7W8HJ0QbiEZkeKjTVQvoK3YQkBYZqSD
kicfnfhn7a+U0z67YeHXeH0goEdLJHGlKPnYb4HyJeH9HhnnWixJwwKb+C0WlFvA
/4BTnVxGWDPJCmNJgEvc
=aNz7
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/920cc608-8e35-2806-5939-e7353b0a1605%40qubes-os.org.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Qubes VM snapshots using git / SVN

2016-12-05 Thread Patrick Schleizer
Has anyone used git / SVN on huge Qubes templates (in case they break
during upgrades or for development purposes) for snapshot / rollback
purposes and can can share some tips (for speeding git it up)?

(Since qvm-revert-template-changes works only on templates and can
revert only to the previews state, not any after multiple VM restarts.)

(Previously posted here:)
https://forums.whonix.org/t/qubes-vm-snapshots-using-git-svn

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/e68dd70e-3831-621d-a842-13d7802f845a%40riseup.net.
For more options, visit https://groups.google.com/d/optout.