Author Topic: PFTP usage and how to auto backup your files  (Read 7064 times)

mewbies

  • Administrator
  • Hero Mewbie
  • *****
  • Posts: 131
    • Mewbies
PFTP usage and how to auto backup your files
« on: August 04, 2010, 07:01:49 AM »
Sometime ago I needed a nix cmd line ftp client for simple jobs (download files from an ftp). It was suggested that I use pftp-shit.v.1.11.zip. I never did, instead I used lftp- super easy basic tool so I never wrote the tutorial for pftp that was planned. Thing is I keep getting request for help with it.

So curious me installed it wondering can it be that hard, whats so special about it.
Oh..sweet dual pane cmd line ftp tool - fxp which is great as I send backups from one server to another often.
I played with it for a few minutes and that is that.
I do plan on taking it further and hopefully will have a tutorial for it, but instead of replying to individual's pms etc I think is best if those that have experience with it can post their instructions here and we can take it from there.

I plan to play with it again next week or the week after (bleh so many other things to finish first).
In the mean time if person x :) wants to post their notes so far - great.

And for person xx that asked how to enable those items [in brackets] such as SSL - use your space key to toggle on item off [] or [ x ] on:
[ x ] SSL Auth         [ x ] SSL DirList      [ x ] SSL Data         [ x ] SSL FXP

pftp is all about key board short cuts:
cat ~/pftp-shit.v.1.11/old/HOWTO

Some of my key board short cuts notes :
View server log: l or L
Leave server log view by pressing your escape key, might need to press it twice.
To transfer a file, select the file to transfer then: t
To stop a transfer: s then c to close the site
Rename: n
Change the list columns forward: f
"           "           backward: F {doesn't work for me
View a text file, select it then 'v' , to escape use escape key.
To delete a 'file': D
Make a directory: m or M
Change directory/cwd: W
To wipe a directory: H
Compare open sites: a
Refresh: r
Toggle repeated magic trade on or off: E
Raw command window: x
If for example you want to view site help, type in only help.
Tho in view it might say:
15:17:39 [ABC      ] refused  '"site help"'              ( SITE command            )   
Press l to view server log where the output will be.
To select multiple directories: space key/arrow key, 1 to deselect


Then comes the next part that I haven't even looked at yet - included with it is a script for irssi that I'm told can work as a method to backup your files, and if you look in pftpfxp-v0.11.4mew6.tgz there is one for mIRC.
Sounds like good fun to play with and would be useful for myself as I have users that upload their documents of which a few times a week I manually backup to another server- and with this script it will auto back it up I believe.  :-))o



If you have a question; do NOT PM me, post it for all to help.

magic

  • Mini Mewbie
  • *
  • Posts: 6
Re: PFTP usage and how to auto backup your files
« Reply #1 on: August 04, 2010, 10:22:25 AM »
thx for the reply mate

and i found another buffer overflow error , when i try to open a section lets say my_home_movies and in tht section there are 3000+ folders , then pftp fails to retrive the directory list and crashes giving this error

b7692000-b7694000 r-xp 00000000 09:01 1736928    /lib/tls/i686/cmov/libdl-2.10.1.so
                                                                                           b7694000-b7695000 r--p 00001000 09:01 1736928    /lib/tls/i686/cmov/libdl-2.10.1.so
                            b7695000-b7696000 rw-p 00002000 09:01 1736928    /lib/tls/i686/cmov/libdl-2.10.1.so
                                                                                                               b7696000-b77c3000 r-xp 00000000 09:01 1737183    /lib/i686/cmov/libcrypto.so.0.9.8
                                               b77c3000-b77cb000 r--p 0012c000 09:01 1737183    /lib/i686/cmov/libcrypto.so.0.9.8
                                                                                                                                 b77cb000-b77d8000 rw-p 00134000 09:01 1737183    /lib/i686/cmov/libcrypto.so.0.9.8
                                                                 b77d8000-b77dc000 rw-p 00000000 00:00 0
                                                                                                         b77dc000-b781d000 r-xp 00000000 09:01 1737182    /lib/i686/cmov/libssl.so.0.9.8
                                      b781d000-b781e000 ---p 00041000 09:01 1737182    /lib/i686/cmov/libssl.so.0.9.8
                                                                                                                     b781e000-b781f000 r--p 00041000 09:01 1737182    /lib/i686/cmov/libssl.so.0.9.8
                                                  b781f000-b7822000 rw-p 00042000 09:01 1737182    /lib/i686/cmov/libssl.so.0.9.8
                                                                                                                                 b7822000-b7837000 r-xp 00000000 09:01 1736906    /lib/tls/i686/cmov/libpthread-2.10.1.so
                                                                       b7837000-b7838000 r--p 00014000 09:01 1736906    /lib/tls/i686/cmov/libpthread-2.10.1.so
             b7838000-b7839000 rw-p 00015000 09:01 1736906    /lib/tls/i686/cmov/libpthread-2.10.1.so
                                                                                                     b7839000-b783c000 rw-p 00000000 00:00 0
                                                                                                                                             b783c000-b7870000 r-xp 00000000 09:01 1737051    /lib/libncurses.so.5.7
                                                                  b7870000-b7871000 ---p 00034000 09:01 1737051    /lib/libncurses.so.5.7
                                                                                                                                         b7871000-b7873000 r--p 00034000 09:01 1737051    /lib/libncurses.so.5.7
                                                              b7873000-b7874000 rw-p 00036000 09:01 1737051    /lib/libncurses.so.5.7
                                                                                                                                     b7874000-b7877000 r-xp 00000000 09:01 427877     /usr/lib/libpanel.so.5.7
                                                            b7877000-b7878000 r--p 00002000 09:01 427877     /usr/lib/libpanel.so.5.7
                                                                                                                                     b7878000-b7879000 rw-p 00003000 09:01 427877     /usr/lib/libpanel.so.5.7
                                                            b7880000-b7882000 rw-p 00000000 00:00 0
                                                                                                    b7882000-b789d000 r-xp 00000000 09:01 1737164    /lib/ld-2.10.1.so
                    b789d000-b789e000 r--p 0001a000 09:01 1737164    /lib/ld-2.10.1.so
                                                                                      b789e000-b789f000 rw-p 0001b000 09:01 1737164    /lib/ld-2.10.1.so
      bfcca000-bfcdf000 rw-p 00000000 00:00 0          [stack]
                                                              ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
                                                                                                                     Aborted


and im using ubuntu 9.10 upgraded , and updated all the latest packages..
« Last Edit: August 04, 2010, 11:44:56 AM by mewbies »

mewbies

  • Administrator
  • Hero Mewbie
  • *****
  • Posts: 131
    • Mewbies
Re: PFTP usage and how to auto backup your files
« Reply #2 on: August 04, 2010, 12:06:34 PM »
That is a lot of directories to list. I have no idea how to fix that, but have you tried with passive mode on and passive mode off?
And maybe there is another option you can edit about the listing.
I would take those errors and try a Ubuntu type forum for help.
Too bad lftp isn't supported still :/ or something equivalent.

If you have a question; do NOT PM me, post it for all to help.

magic

  • Mini Mewbie
  • *
  • Posts: 6
Re: PFTP usage and how to auto backup your files
« Reply #3 on: August 04, 2010, 12:10:58 PM »
ya i tried passive mode on and off but same error :(

ill try testing it out in my debian test server and see it makes any differences but i doubt it will heh..

mewbies

  • Administrator
  • Hero Mewbie
  • *****
  • Posts: 131
    • Mewbies
Re: PFTP usage and how to auto backup your files
« Reply #4 on: August 04, 2010, 12:21:21 PM »
Please also suggestion to post to that blog/tutorial you gave. Sounds like fr3sh is a user of this tool.
If you have a question; do NOT PM me, post it for all to help.

magic

  • Mini Mewbie
  • *
  • Posts: 6
Re: PFTP usage and how to auto backup your files
« Reply #5 on: August 06, 2010, 07:36:08 PM »
how's the pftp tutorial coming along mate ?

mewbies

  • Administrator
  • Hero Mewbie
  • *****
  • Posts: 131
    • Mewbies
Re: PFTP usage and how to auto backup your files
« Reply #6 on: August 09, 2010, 05:23:25 AM »
Still haven't had a chance to pick it up again  :(
And I'm going to be gone until next week.
So it's not going to be soon, but I haven't forgotten about it  :/)
If you have a question; do NOT PM me, post it for all to help.