<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi, Gonzalo<br>
<br>
Rsync backup to the server is currently implemented via
/usr/bin/ds_backup.py. The implementation is flawed in that if a
user must delete Journal items because of storage space
restrictions, those items are also deleted from the backup. A better
approach is to backup individual Journal objects. Users should be
able to delete items locally and then restore them from the server
as needed. If an XO becomes unusable, the user should be able to
restore the Journal on a new machine.<br>
<br>
The concern I expressed about git is that implementation will
require a modification to activity.py. Currently activity.py on
resume loads the Journal object. Subsequent operations modify that
object so that it impossible for the user to create a new version. I
assume this git strategy is to make the datastore directory git
enabled. This would mean that activity.py would load the currently
committed object and then store the updated object. If this object
is immediately committed to git, that should work. However, suppose
the user opens paint with a previously created image and then
changes it. This would require a new object not a new version of an
existing object. How is that to be handled?<br>
<br>
Tony<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 03/23/2015 09:26 AM, Gonzalo Odiard
wrote:<br>
</div>
<blockquote
cite="mid:CAJ+iPVRJyCmy63dYCJ=NnYBcFJ4p=gKQc9FxbrAXdujjpYC8KQ@mail.gmail.com"
type="cite">
<div dir="ltr">The version of backup included in Sugar control
panel, allows use different backends.
<div>The only implemented is backup to a local device, </div>
<div>but is possible add another using rsync to backup to a
server.</div>
<div><br>
</div>
<div>Gonzalo</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Mar 22, 2015 at 7:23 AM, James
Cameron <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class="">On 21/03/2015, at 7:44 PM, Tony Anderson wrote:<br>
> Currently, the Journal backup is rsync on the
datastore. Any design with git would need to make sure the
git versions are also backed up and restored.<br>
<br>
</span>The Backup control panel on Sugar 0.104 doesn't use
rsync; it uses tar.<br>
<div class="HOEnZb">
<div class="h5"><br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a moz-do-not-send="true"
href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sugarlabs.org/listinfo/sugar-devel"
target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">Gonzalo Odiard<br>
<br>
<div>SugarLabs - Software for children learning <br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>