<br><br><div class="gmail_quote">On Wed, Jul 29, 2009 at 6:37 PM, Martin Langhoff <span dir="ltr"><<a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, Jul 29, 2009 at 12:17 PM, Daniel Drake<<a href="mailto:dsd@laptop.org">dsd@laptop.org</a>> wrote:<br>
> Any interest in adding functionality to the XS to back up and restore user data?<br>
<br>
</div>Yes!<br>
<div class="im"><br>
> Including:<br>
> - stuff that has been posted on moodle<br>
> - XO backups<br>
> - registration information<br>
<br>
</div>Yes...<br>
<div class="im"><br>
> but *not* stuff where deployments should always have a master copy elsewhere:<br>
> - activities from activity server<br>
> - OS images in xs-rsync<br>
> - system files<br>
> - ...<br>
<br>
</div>Makes sense.<br>
<div class="im"><br>
> Here's an initial implementation, which can be used to create a<br>
> single-file compressed backup which can then be copied to an external<br>
> storage device.<br>
<br>
</div>Where do you want to back it up to? I really like the idea of having a<br>
"standard" single file backup that we can use over various modes of<br>
storage (as your patch implements), but some storage "backends" would<br>
be better served with an rsync-friendly format (and tgz ain't).<br>
<br>
And the difference is not small.<br>
<div class="im"><br>
> Backup part has been tested, but not restore just yet. Needs a patch<br>
> to idmgr create_user too. What do you think?<br>
<br>
</div>Initially I thought that the UID/user mapping would have to be saved<br>
and restored, but tar defaults to username rather than numberic<br>
uid/gid.<br>
</blockquote><div><br><pre>tar --numeric-owner should work, right?</pre> Sameer<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
You _will_ want to restore the ACLs in the backup (they're trivial,<br>
don't bother to save them). They are set in the script we trigger<br>
post-backup-completion.<br>
<br>
cheers,<br>
<br>
<br>
<br>
m<br>
--<br>
<a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a><br>
<a href="mailto:martin@laptop.org">martin@laptop.org</a> -- School Server Architect<br>
- ask interesting questions<br>
- don't get distracted with shiny stuff - working code first<br>
- <a href="http://wiki.laptop.org/go/User:Martinlanghoff" target="_blank">http://wiki.laptop.org/go/User:Martinlanghoff</a><br>
_______________________________________________<br>
Server-devel mailing list<br>
<a href="mailto:Server-devel@lists.laptop.org">Server-devel@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/server-devel" target="_blank">http://lists.laptop.org/listinfo/server-devel</a><br>
</blockquote></div><br>