Page 10 of 99 FirstFirst ... 891011122060 ... LastLast
Results 136 to 150 of 1476

Thread: Mfs_Ftp: extract, archive, restore & transfer recordings

  1. #136
    Join Date
    Apr 2003
    Posts
    2

    Does MFS_ftp conflict with built-in Tivo FTP?

    I'm having problems getting mfsstream to download .TY files over 2 gb (using OS X Safari and Internet Explorer) within TivoWeb.

    I'd like to install MFS_FTP to get around my browser's download limitation. I may have missed it in the mfs_ftp thread, but does MFS_FTP conflict or interfere with my existing FTP server (tivoftpd?) already on my DTivo?

    How do I differentiate between the two servers for 1) downloading .TY files (mfs_ftp) and 2) uploading applications to the DTivo (tivoftpd)?

    Thanks

  2. #137
    Join Date
    Jun 2003
    Location
    Somerset, England
    Posts
    1,124
    No, they get along just fine. You connect on a different port.

  3. #138
    Join Date
    Apr 2003
    Posts
    2
    Excellent. How do I tell my FTP client which server to connect to?

    If I'm using Fetch or Terminal, do I have to designate different port addresses for each server?

  4. #139
    Join Date
    Jun 2003
    Location
    Somerset, England
    Posts
    1,124
    The port number will be on a screen with the connection information in whatever software you use. It defaults to 21, so you've probably never changed it. 21 will get you the TiVo FTP; 3105 will get mfs_ftp.

  5. #140
    Join Date
    Apr 2003
    Posts
    2
    That's exactly what I was looking for! Thanks so much.

  6. #141
    Join Date
    Mar 2003
    Posts
    42
    In Fetch 4.0.3 the "New Connection" window has a "Non-Standard Port Number" box for you to enter 3105.



    In Terminal:

    ftp -Aa tivo 3105

    will get you where you need to be. But the latest MFS_FTP doesn't seem to be as command line friendly as the old ones, now that it has the {}'s around everything.



    And don't forget to create a .telnetrc in your home directory with the following line in it:

    tivo mode line

    for when you want to telnet into your tivo.



    I'm assuming you added the name 'tivo' to your NetInfo Manager as:

    /
    machines
    tivo

    With the Properties : Values of...
    ip_address : ###.###.###.###
    name : tivo



    Mac OS X doesn't check the hosts file like other flavors of un*x, so you have to do it in NetInfo.

  7. #142
    Join Date
    Jan 2003
    Posts
    0

    Perl Script

    All the usual disclaimer stuff. It works well for me, for the most part. I think overall, the mwstate error and the 2gb file limit on the appliance is going to be an issue this tv-season for me as I'm recording more shows in Best.

    I'm working on another perl script that will automatically upload the files to the other tivo, but there's something funky going on with the timeout sequence that's stalling the transfer. I'll eventually get it to work, when it bugs me enough.

    --Pat

    --Start --
    #!/usr/bin/perl

    use Net::FTP;

    ####
    ## User Configuration
    ####
    # Directory where ShowSubDir Lives
    my $Progdir = '/home/gart/';
    # Sub-Directory of Progdir that will hold the shows
    my $ShowSubDir = 'shows/';
    # Net::FTP Debug level (set at least 2 to see anything useful)
    my $Verbose = "0";
    # the Tivo's IP address/Hostname
    my $TivoIP = 'tivo2';
    # The port mfs_ftp listens on (3105 is default)
    my $TivoPort = "3105";
    # The show size in bytes(?) that you want to download (default 2gb)
    # This is due to an old kernel on the appliance I'm using to transfer my shows
    my $MaxSize = "2000000000";

    ####
    ## End user configuration
    ####
    my $FullDir = $Progdir.$ShowSubDir;

    my $ftpdebug = 0;
    if( $Verbose > 1 ) { $ftpdebug = $Verbose - 1; }
    # Build the connection, change dir, get a listing
    my $ftp = Net::FTP->new($TivoIP, Debug=>$ftpdebug, Port=> $TivoPort);
    $ftp->cwd("tmf");
    $ftp->type("I");
    $test = $ftp->pwd();
    @temp = $ftp->dir();
    # If there are no shows available, exit.
    if ($#temp eq 0) { $ftp->quit; exit; };
    $tc = $#temp + 1;
    print "Found $tc shows to transfer\n";
    # Start processing the listing
    for $i (0..$#temp) {
    @junk = split(/\s+/,$temp[$i]);
    $filesize = $junk[4];
    for $o (0..7) {
    shift @junk;
    }
    $filename="";
    for $o (0..$#junk) {
    if ( $filename eq "" ) {
    $filename = $junk[$o];
    $ofilename = $junk[$o];
    } else {
    $filename = $filename."-".$junk[$o];
    $ofilename = $ofilename." ".$junk[$o];
    }
    }
    $Start = time();
    # Test against Maxsize skip if too big
    if ($filesize >= $MaxSize) { print " Skipped - too big\n"; next; };
    # Remove all the funky characters
    $newname = $filename;
    $newname =~ s/ /-/g;
    $newname =~ s/{//g;
    $newname =~ s/}/-/g;
    $newname =~ s/:/-/g;
    $newname =~ s/,//g;
    print "Starting Transfer for $newname\n";
    $ffilename = $FullDir.$newname;
    # Pull down the ftp file
    $ftp->get($ofilename,$ffilename);
    # This doesn't really work, but I want to make it work some day
    sprintf("Transferred %d sec\n", time() - $Start);
    }
    $ftp->quit;

    ---END ---

  8. #143
    Join Date
    May 2003
    Posts
    5

    Thanks

    Thanks for help. Didn't realize winzip would do the trick. I'll read over and watch the threads. Do hope the progress continues as I see this to be more benefical then burning dvd's for archive.

    Thanks again, learn something every day!

  9. #144
    Join Date
    Oct 2001
    Posts
    242
    Just adding a little tidbit

    With Winzip, make sure you go to Configuration > MISC > and disable the TAR file smart CR\LF option. This can really cause some headaches.

  10. #145
    Join Date
    Dec 2001
    Posts
    15
    Hi, been uning mfs_ftp for some days, and I'm more than happy with it.

    I've a couple of questions.

    I'm running mfs_ftp from a telnet sesion, but if I kill the sesion, the server will kill.

    Is there anyway to run the server from say rc.sysinit and get it working from there when tivo starts ?

    I'm using a uk tivo with software 2.5.5 , should I pay attention to the Dtivo 2.5.2 mwstate error & fix ?

    Tks for your help

    Salva

  11. #146
    Join Date
    Oct 2001
    Posts
    242

    29

    Is there anyway to run the server from say rc.sysinit and get it working from there when tivo starts ?

    Sure! There is a way to handle your situation.

    if you start mfs_ftp like this from its directory:

    ./mfs_ftp > /dev/null &

    It will background the process and you can kill telnet without worries.

    You can do this from telnet or from the rc.sysinit like this:

    /pathtomfs_ftp/mfs_ftp > /dev/null &


    Ain't it fun

  12. #147
    Join Date
    Mar 2002
    Posts
    1,339

    Re: MFS_FTP on S2

    Originally posted by mavrcksd
    00:00:00 - mfs_ftp version 1.2.5.1 - checking tivo system sw
    00:00:00 - entering reset_mfs_ftp
    00:00:00 - port 3150 control socket initialized - ready for connections
    there was never an official version that defaulted to port 3150. the one you have was corrupted somehow / somewho. the current version is allways linked to in the first post
    Last edited by rc3105; 12-10-2003 at 04:50 AM.

  13. #148
    Join Date
    Feb 2003
    Posts
    411

    installation Errors

    Below is a copy of error messages in Terra Term when I tried to install mfs_ftp. Can someone please tell me what I'm doing wrong? This is on a GXCEBOT S1 at 3.01 via xtreme & Xpluz, 2 120 gb harddrives and turbonet.

    Thanks in Advance,
    Mikey

    /var# tar -zxvf /var/mfs_ftp.1.2.9.tgz
    mfs_ftp/
    mfs_ftp/fifo
    mfs_ftp/edit_title.tcl
    mfs_ftp/mfs_export
    mfs_ftp/mfs_ftp.tcl
    mfs_ftp/mfs_stdinsert
    mfs_ftp/mfs_stream
    mfs_ftp/mfs_tarstream
    mfs_ftp/ftpf.sh
    mfs_ftp/cache/
    mfs_ftp/tzoffset.tcl
    mfs_ftp/mkfifo
    mfs_ftp/setpri
    mfs_ftp/log
    tar: mfs_ftp/log: Cannot lchown to uid 0 gid 0: Function not implemented
    mfs_ftp/abort_toggle.sh
    mfs_ftp/ftpf21.sh
    mfs_ftp/seasonpass/
    mfs_ftp/readme.txt
    mfs_ftp/ftp
    tar: mfs_ftp/ftp: Cannot lchown to uid 0 gid 0: Function not implemented
    mfs_ftp/drdos/
    mfs_ftp/abort.doc
    mfs_ftp/nuke_DC_key.tcl
    mfs_ftp/set_DC_key.tcl
    mfs_ftp/dump_DC_key.tcl
    tar: Error exit delayed from previous errors
    Last edited by mikey; 10-01-2003 at 02:59 PM.

  14. #149
    Join Date
    Mar 2002
    Posts
    1,339
    the tar lchown errors are normal, should work fine
    Last edited by rc3105; 10-10-2003 at 08:54 PM.

  15. #150
    Join Date
    Jul 2003
    Posts
    769

    Automated transfer between Tivos using bash script

    I wrote a quick-n-dirty bash script that runs on a third linux machine and copies files between tivos. It could also work on a Windows/Cygwin box.


    I'm posting it to spark discussion but it may not work for someone who doesn't know this stuff well. It needs a dos2unix and curl binaries. I had to get the latest curl which supports rate limiting but the dos2unix was the one included in my RH7.2 (probably same binary since forever).

    Right now it lets you select one recording to transfer. I tried this with smartftp and FXP but I never get it to work consistently. I also couldn't figure out how to limit the rate. My Tivo gets really slow at anything over 200k get or put. The disadvantage to this is you need a machine with several gigabytes of free 'swing space'.

    I figure it needs a whole lot more error checking (check drive space,failures,etc) and a change such that it lets you select multiple tasks and then do them all sequentially in a background batch.

    If I get time I'll enhance it but if anyone else wants to, feel free.


    BTW: I did some last minute changes w/out testing so the syntax may not be totally right but the curl commands are right on.


    ABTW: I toyed with the idea of starting the 'get' in the background and sleeping 10 minutes and start the 'put' . It would allow a faster transfer because of the overlap but there's no way to be sure it gets the whole file.


    #!/bin/sh

    # bash function that gets a file listing from the tivo
    function getlisting()
    {
    TIVO=$1

    if [ "${TIVO}" != "" ]
    then
    curl ftp://$TIVO:3105/tmf/ 2>/dev/null > listing.$TIVO || echo error getting listing
    else
    echo usage: $0 tivoaddress
    fi

    IFS="
    "

    # I start at 100 so all columns the same. 1000+ recordings will break this
    COUNT=100
    mv -f listing.$TIVO templist.tmp
    for LINE in $( cat templist.tmp )
    do
    LINE=${LINE:28:197}
    echo "${COUNT}: ${LINE}"
    COUNT=$(( ${COUNT} + 1 ))
    done > listing.${TIVO}

    dos2unix listing.${TIVO}
    }



    # this assumes you have two tivos that resolve to tivo and tivo2
    # IP addresses should also work here
    echo "1 - tivo to tivo2"
    echo "2 - tivo2 to tivo "
    read -n1 usrin


    case $usrin in
    1)
    FROM=tivo
    TO=tivo2
    LISTING=listing.tivo

    ;;
    2)
    FROM=tivo2
    TO=tivo
    LISTING=listing.tivo2
    ;;
    *)
    exit
    ;;
    esac

    # get listing from source tivo
    getlisting ${FROM}


    # I use the 'less' file browser so you can make note
    # of the recrding number
    less ${LISTING}

    echo
    echo
    echo
    echo Enter Number
    echo

    # enter the number of the recording to transfer
    read NUMBER

    # parse the name
    name="$( grep "^${NUMBER}:" ${LISTING} | cut -c33- )"
    echo "+$name+"

    # get the file
    curl --limit-rate 200k --disable-epsv --remote-name --verbose --globoff "ftp://${FROM}:3105/tmf/${name}"
    # put the file
    curl -T "${name}" --limit-rate 200k --disable-epsv --verbose --globoff "ftp://${TO}:3105/tmf"

    # delete the file from local drive
    rm -f "${name}"
    Last edited by cojonesdetoro; 10-02-2003 at 05:55 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •