Hi Peter, On Thu, 20 May 2010, Peter Palfrader wrote: > > > 3. Try to roll out our own snapshotting based on your code > > > (Least preferable since places too much load on us, not sure if we > > > would manage to cope with it) > If you decide to go with that I can probably help out by answering > questions etc. I have decided to git it a try ;) and have * got up-to-date git repository (b1bd8ca5cc69f6c53af1f9f8e7f4afdf118f9b6e) * setup clean chroot with postgresql and required dependencies (see attached patch for README with dependencies for DB and FUSE) * setup DB (used db-init.sql and db-create.sql, although initially in the wrong sequence ;-)) * created our own configuration file * created archive with ./snapshot -c snapshot.conf -v -a neurodebian add-archive * but now I am somewhat lost on what should be my course of action.. fs-list given a directory works, but "import" fails: (snapshots-session)snapshot@pymvpa:~/snapshot$ ./snapshot -s -c snapshot.conf -p /home/www/neuro.debian.net/www/debian -v -a neurodebian import ./snapshot:671:in `>': comparison of String with 1 failed (ArgumentError) from ./snapshot:671:in `_get_prev_next' from ./snapshot:710:in `import_from_filesystem' from ./snapshot:1335:in `import' from ./snapshot:1451 May be you could share the details of a typical workflow with the snapshot/? also, what kind of config.yaml would I need for fuse? (snapshots-session)snapshot@pymvpa:~/snapshot$ fuse/snapshotfs Usage: fuse/snapshotfs <config.yaml> [fuse options] <mountpoint> but I see no hint on config.yaml P.S. also I dared to diverge from original name for the DB to be somewhat more descriptive (i.e. snapshotdb instead of just snapshot which is also a name of the user). just in case -- attaching the patch as well for db-init. -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555]
From 3e7e42dbd77cace41c6f438f5e2406bbbe78a043 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko <debian@onerussian.com> Date: Wed, 22 Sep 2010 16:40:09 -0400 Subject: [PATCH] adhere to snapshotdb db name and snapshot as a user --- db/db-init.sql | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db/db-init.sql b/db/db-init.sql index 2ad4d78..cddc9c4 100644 --- a/db/db-init.sql +++ b/db/db-init.sql @@ -1,6 +1,6 @@ -REVOKE ALL ON DATABASE "snapshot" FROM public; -GRANT ALL ON DATABASE "snapshot" TO "snapshot"; -GRANT CONNECT, TEMPORARY ON DATABASE "snapshot" TO PUBLIC; +REVOKE ALL ON DATABASE "snapshotdb" FROM public; +GRANT ALL ON DATABASE "snapshotdb" TO "snapshot"; +GRANT CONNECT, TEMPORARY ON DATABASE "snapshotdb" TO PUBLIC; REVOKE ALL ON SCHEMA public FROM PUBLIC; GRANT ALL ON SCHEMA public TO "snapshot"; -- 1.5.6.5
From 6a221f338b4b89a64a912669938114dd1a8205c8 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko <debian@onerussian.com> Date: Wed, 22 Sep 2010 16:40:42 -0400 Subject: [PATCH] adding dependencies for DB and FUSE interfaces into README --- README | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/README b/README index e0314af..7a2a135 100644 --- a/README +++ b/README @@ -131,6 +131,8 @@ Missing wanted features: [ o .. done; - to do; . partially done ] Depends: ruby, libdbd-pg-ruby1.8 libbz2-ruby1.8 libbz2-ruby1.8, python-yaml, python-psycopg2, fuse-utils python-fuse, uuid-runtime +DB-Depends: postgresql-plperl-8.4 postgresql-8.4-debversion +FUSE-Depends: python-fuse Web-Depends: python-pylons (that is {python-pylons,python-routes,python-nose,python-paste,python-pastedeploy,python-pastescript,python-webob,python-weberror,python-beaker,python-mako,python-formencode,python-webhelpers,python-decorator,python-simplejson}/lenny-backports ) Web-Recommends: libapache2-mod-wsgi apache2 Apache config: required modules: expires headers -- 1.5.6.5
Attachment:
signature.asc
Description: Digital signature