I am using lftp for mirroring the files on a server to a PC. The problem for me is that as I put a batch of files on the PC that are exactly the same as the ones on the server, the mirroring starts of all files. Probably due to differing time stamps? That is a problem since the mirroring is only intended to change some files I may change, not all (a massive number of files).
What I want is that lftp: 1. Updates the PC with new files that are put on the server 2. Deletes any file on the PC that is no longer on the server 3. (and here the problem comes) Files that exist on the PC and the server, should only be updated on the PC if there is a difference in file size (ignoring any potential time stamp difference) This is how the command looks like right now:
LCD="/home/administrator/files" RCD="" lftp -c "ser ftp:list-options -a; open ftp://$username:$pw@$host; lcd $LCD; cd $RCD; mirror --delete"
what should i add/change? Thanks in advance. /Toby