christos
2eda9128ae
Allow backup and restore to operate on files.
2015-12-02 12:36:53 +00:00
christos
d1f209293e
split out into smaller functions.
2015-12-02 04:06:47 +00:00
christos
8ca93e4658
Refactor the command dispatching and help printing logic.
2015-12-01 16:32:19 +00:00
christos
0b43d398b9
Firs step of refactoring, remove all globals, factor out some common code,
...
handle alternate usage but not advertise it.
2015-12-01 09:05:33 +00:00
christos
ca4e0dcdd1
merge the create errors in one place and fix them.
2015-11-29 00:14:46 +00:00
christos
21c34dbb1d
Add internal uuid support, since the linux+macos versions of the library
...
are different than than *bsd ones, and others might not have it at all.
2014-09-30 17:59:59 +00:00
christos
c917041fda
remove compat defines.
2014-09-30 02:12:55 +00:00
christos
4da1cfa89d
more toolification changes
2014-09-29 22:22:03 +00:00
christos
866082940a
more toolification
2014-09-29 21:04:34 +00:00
christos
a50708a134
minor toolification: need libprop...
2014-09-29 20:28:57 +00:00
jnemeth
e3f4016378
- dump all partitions, not just ones that are in use
...
- while here, squash a memory leak
It shouldn't be necessary to backup unused partitions, however
the partition GUID is created at the time the GPT is created and
is never changed. It shouldn't matter if the GUID of an unused
partition changes, but there may be some special case where it
does. Since it isn't a big deal to record the unused partitions,
might as well do it.
2014-09-10 10:49:44 +00:00
jnemeth
ef9cc4e43f
- record the sector size of the disk
...
- correct confusion with end_cylinder and end_sector in MBRs
2014-09-09 06:30:09 +00:00
jnemeth
4fb24d0cac
Add the backup subcommand. It dumps the contents of the partition
...
tables as a plist, which is readable by the restore subcommand.
XXX restore subcommand forthcoming
2013-12-19 06:46:51 +00:00