Ok, so i've written the syncronisation module, i've done some prelim testing, and it all appears pretty good so far.
the performance is ok, i've got 278 videos on a samba share across a 10Mb network, and it takes about 1.5 mins to perform the sync on a 2.6 celly. This could be a bit of amisleading figure as all but 1 of the files was already synced. The time will blow out if there are lots of files to sync as it makes a call to the database for each file missing (not a batch or anything like that). pretty much, the sync goes to the mythconverg database and gets all the filenames, then goes to the FS and gets all the filenames. it then looks to see what is on the FS and not in myth, then adds the missing entries. The library (perl module) is attached. it can be called so: ----------------8<----------------------- #!/usr/bin/perl -w use strict; use Synchronise; my $so = Mythtv::Synchronise->new(); $so->sync(); ----------------8<----------------------- On Apr 1, 2005 10:32 AM, Ryszard <[EMAIL PROTECTED]> wrote: > Is there a tool out there that can do mythvideo syncronisation without > having to use mythfrontend? > > I just had a look in mythconverg, and i reckon it would be a pretty > easy thing to whip up in perl, what's more, it could be daemonised, > cronified, or whatever. > > If there is a tool, cool, point me to it, if not, i'll just write one. >
Synchronise.pm
Description: Binary data
_______________________________________________ mythtv-users mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
