DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default How to sync files over ftp

I'd like to be able to sync my homepage files from disk to remote server, which i can only access as regular user....
I can access it via ftp://

What would you suggest

P.S. i'd prefer build in tools, or minimalistic text based program
Reply With Quote
  #2   (View Single Post)  
Old 22nd July 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

It's not built in but www/wget might be able to do it, this and the programs documentation would be a starting point.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #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
Thanked 25 Times in 24 Posts
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
  #4   (View Single Post)  
Old 3rd August 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

I solved it
The answer is
ftp/filezilla


works great, all that i need

EDIT: word fix

Last edited by graudeejs; 5th August 2008 at 03:30 AM.
Reply With Quote
  #5   (View Single Post)  
Old 4th August 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,066
Thanked 198 Times in 156 Posts
Default

You mean filezilla?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Reply

Tags
ftp, sync

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cleaning Portsnap files in /var/db/portsnap/files bram85 FreeBSD Ports and Packages 2 5th October 2009 09:54 AM
Encrypting Files JMJ_coder General software and network 22 25th October 2008 07:49 AM
Best Way to sync web sites roundkat OpenBSD General 2 14th September 2008 01:48 PM
merging log files Sylhouette FreeBSD General 5 9th August 2008 02:46 AM
Moving files Weaseal Programming 2 14th July 2008 07:30 AM


All times are GMT. The time now is 06:58 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick