local listing
***@box:/home/me23at/Photos/Engagement# ls -la
total 623444
drwx------ 2 me23at me23at 4096 2012-01-13 18:06 .
drwx------ 4 me23at me23at 4096 2013-01-24 21:27 ..
-rwxr-xr-x 1 me23at me23at 4983998 2012-01-13 18:05 Balcony scene.jpg
-rwxr-xr-x 1 me23at me23at 5053584 2012-01-13 18:06 Bottom right 1.JPG
-rwxr-xr-x 1 me23at me23at 4759033 2012-01-13 18:03 Cinderella 1.JPG
-rwxr-xr-x 1 me23at me23at 4880674 2012-01-13 18:04 Cinderella 2 -
whatever will I do.JPG
-rwxr-xr-x 1 me23at me23at 4789862 2012-01-13 18:04 Cinderella 3 -
Prince Charles to the rescue.JPG
-rwxr-xr-x 1 me23at me23at 4738662 2012-01-13 18:05 Cinderella 5 -
sorted.JPG
-rwxr-xr-x 1 me23at me23at 7822082 2012-01-13 18:05 Coming to get you 1.jpg
-rwxr-xr-x 1 me23at me23at 8628369 2012-01-13 18:03 Coming to get you 2.jpg
-rwxr-xr-x 1 me23at me23at 8808578 2012-01-13 18:05 Coming to get you 3.jpg
-rwxr-xr-x 1 me23at me23at 8394121 2012-01-13 18:03 Coming to get you 4.jpg
-rwxr-xr-x 1 me23at me23at 4852841 2012-01-13 18:03 Coming to get you 5.JPG
remote listing 20130212 21.06
ncftp ./Photos/Engagement > ls -la
-rwx------ 1 user group 4983998 Jan 13 2012 Balcony scene.jpg
-rwx------ 1 user group 5053584 Jan 13 2012 Bottom right 1.JPG
-rwx------ 1 user group 899635 May 20 2012 Cinderella 1.JPG
-rwx------ 1 user group 4880674 Jan 13 2012 Cinderella 2 -
whatever will I do.JPG
-rwx------ 1 user group 4789862 Jan 13 2012 Cinderella 3 -
Prince Charles to the rescue.JPG
-rwx------ 1 user group 4738662 Jan 13 2012 Cinderella 5 -
sorted.JPG
-rwx------ 1 user group 7822082 Jan 13 2012 Coming to get you 1.jpg
-rwx------ 1 user group 8628369 Jan 13 2012 Coming to get you 2.jpg
-rwx------ 1 user group 8808578 Jan 13 2012 Coming to get you 3.jpg
-rwx------ 1 user group 8394121 Jan 13 2012 Coming to get you 4.jpg
-rwx------ 1 user group 4852841 Jan 13 2012 Coming to get you 5.JPG
and then i run lftp
***@box:/home/me23at/Photos/Engagement# lftp --verbose=3 -f
/usr/local/bin/ld_ftp
Mirroring directory `Photos'
Mirroring directory `Photos/Engagement'
Removing old file `Photos/Engagement/Bottom right 1.JPG'
Transferring file `Photos/Engagement/Bottom right 1.JPG'
Removing old file `Photos/Engagement/Cinderella 5 - sorted.JPG'
Transferring file `Photos/Engagement/Cinderella 5 - sorted.JPG'
Removing old file `Photos/Engagement/Coming to get you 1.jpg'
Transferring file `Photos/Engagement/Coming to get you 1.jpg'
Removing old file `Photos/Engagement/Coming to get you 2.jpg'
Transferring file `Photos/Engagement/Coming to get you 2.jpg'
etc etc
and then relist the remote
ncftp ./Photos/Engagement > ls -la
-rwx------ 1 user group 4983998 Jan 13 2012 Balcony scene.jpg
-rwx------ 1 user group 5053584 Jan 13 2012 Bottom right 1.JPG
-rwx------ 1 user group 899635 May 20 2012 Cinderella 1.JPG
-rwx------ 1 user group 4880674 Jan 13 2012 Cinderella 2 -
whatever will I do.JPG
-rwx------ 1 user group 4789862 Jan 13 2012 Cinderella 3 -
Prince Charles to the rescue.JPG
-rwx------ 1 user group 4738662 Jan 13 2012 Cinderella 5 -
sorted.JPG
-rwx------ 1 user group 7822082 Jan 13 2012 Coming to get you 1.jpg
-rwx------ 1 user group 57920 Feb 12 21:14 Coming to get you 2.jpg
so it looks to me like its replacing the files that already existon the
remote server.
the only thing i can think of is that the remote server is in a
different timezone ( 8 hours hehind me )
Could that make a difference ?
Post by SanskritFritzI'm using lftp to backup to a remote server and use
mirror -R -v -n -X Maildir/ /home/mine mine
ie everything in /home/mine except Maildir
it is removing and then re-transferring each file , even hough it hasn’t
been changed on the local machine .
Is this correct ?
No, lftp leaves the unchanged files as is. Use --verbose=3 to see it yourself.