Hello List, COuld anyone give me some pointers or perhaps a example of how to create a rsync that will check the headers on a specific files on a remote ftp server for never versions of the files and copy and over write any files that might be there on to a local drive, or is there a better way of doing this.? -- Kind regards Per Qvindesland E-mail: per@qvtech.cc Web: www.qvtech.cc Fax: 0866730128
Per Qvindesland wrote:
COuld anyone give me some pointers or perhaps a example of how to create a rsync that will check the headers on a specific files on a remote ftp server for never versions of the files and copy and over write any files that might be there on to a local drive, or is there a better way of doing this.?
It's not very complicated - assuming your remote FTP server also does rsync: rsync -av <remoteserver>:<path> <localpath> /Per Jessen, Zürich
Hello Per, Thanks for coming back to me, the sad part is that the files that is sitting on that ftp server is not a Linux box but a M$ server :( any idea of how to achieve that? Regards Another Per :) On Tue, 2006-10-03 at 08:40 +0200, Per Jessen wrote:
Per Qvindesland wrote:
COuld anyone give me some pointers or perhaps a example of how to create a rsync that will check the headers on a specific files on a remote ftp server for never versions of the files and copy and over write any files that might be there on to a local drive, or is there a better way of doing this.?
It's not very complicated - assuming your remote FTP server also does rsync:
rsync -av <remoteserver>:<path> <localpath>
/Per Jessen, Zürich
-- Kind regards Per Qvindesland E-mail: per@qvtech.cc Web: www.qvtech.cc Fax: 0866730128
Per Qvindesland wrote:
Hello Per,
Thanks for coming back to me, the sad part is that the files that is sitting on that ftp server is not a Linux box but a M$ server :( any idea of how to achieve that?
Regards Another Per :)
Hej Per I think you might be able to use the FTP command "newer": newer remote-file [local-file] "Get the file only if the modification time of the remote file is more recent that the file on the current system. If the file does not exist on the current system, the remote file is considered newer. Otherwise, this command is identical to get." Of course, this depends on the M$ FTP server. /Per Jessen, Zürich
Thanks for coming back to me, the sad part is that the files that is sitting on that ftp server is not a Linux box but a M$ server :( any idea of how to achieve that?
rsync is available for MS as well: http://www.itefix.no/phpws/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=6&MMN_position=23:23 Yours hjb
If you want to have an exact copy of the files you would want to use the command like this: rsync -av --delete <remoteserver>:<path> <localpath> The --delete will delete any files on the localpath that have been removed from the remoteserver. Another good option is to use ssh for the transfer and authentication: rsync -av --delete -e ssh <remoteserver>:<path> <localpath> You can setup ssh to allow login without needing the password. Look at the man page for ssh and search for authorized_keys. Mike Per Jessen wrote:
Per Qvindesland wrote:
COuld anyone give me some pointers or perhaps a example of how to create a rsync that will check the headers on a specific files on a remote ftp server for never versions of the files and copy and over write any files that might be there on to a local drive, or is there a better way of doing this.?
It's not very complicated - assuming your remote FTP server also does rsync:
rsync -av <remoteserver>:<path> <localpath>
/Per Jessen, Zürich
participants (4)
-
Hermann J. Beckers
-
Mike Noble
-
Per Jessen
-
Per Qvindesland