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'
|