View Single Post
  #3   (View Single Post)  
Old 23rd July 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

Suggestions, as starting points.

What comes o mind is to build two tables, obe of the files of the remote server, one for the disk, identify differences then put the files which differ or are to be added.

Easier said than done.
So far, I checked (see manpages for the switches):

FTP connect, then
ls -agRT

Try this also
wget -r --spider -nv --user=${me} --password=${my_passwd} ftp://localhost/public_html/${mysite}/*


With ls, all files have relevant info such as size (and date) but I don't seem to be able to prepend the full path.
With wget, as entered, all files of the site are tested - with full path - and a directory tree is created locally. I don't seem to be able to redirect the tertminal output to a file though.

Normally, presence providers should provide tools to perform a sync, so, either change presence provider or have fun!
__________________
da more I know I know I know nuttin'
Reply With Quote