Switching from file backend to redis backend

0 views
Skip to first unread message

justin...@gmail.com

unread,
Mar 27, 2026, 8:10:54 AM (7 days ago) Mar 27
to jug-users
Hi all,

Is there a mechanism or straightforward path to "move" from an existing file-based backend to a redis store without recomputing all the tasks?

It seems like there ought to be a simple way to just iterate through tasks to get their location, change backends, then write all the tasks or something?

Any advice appreciated.

Justin

Luis Pedro Coelho

unread,
Mar 27, 2026, 8:05:14 PM (7 days ago) Mar 27
to Justin Porter, jug-...@googlegroups.com
Hi Justin,

There is no command line API, but you can use the jug api from within Python

You can do something like this:

   src = jug.backends.select(source)
   dst = jug.backends.select(destination)

     for k in src.list():
       v = src.load(k)
       dst.dump(v, k)

I had claude do it as a proper script, see attached

python copy_jugdata.py YOUR_EXISTING_DIRECTORY.jugdata  redis://localhost/

Best, Luis
--
You received this message because you are subscribed to the Google Groups "jug-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jug-users+...@googlegroups.com.

Luis Pedro Coelho | Queensland University of Technology | https://luispedro.org


copy_jugdata.py
Reply all
Reply to author
Forward
0 new messages