Re: [lftp] mirror -R -v -n ?
On Thu, Feb 14, 2013 at 09:35:49PM +, p cooper wrote: mirror: Access failed: 553 Improper name (Date::Manip::Zones.3pm) I think it is a limitation of the server. -- Alexander. ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
[lftp] mirror -R -v -n ?
I'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 hasnt been changed on the local machine . Is this correct ? if so , what i want is to just transfer any changed/new/ files can anyone hlep me out Thanks ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] mirror -R -v -n ?
On Thu, Jan 3, 2013 at 5:07 PM, p cooper p...@medalto.co.uk wrote: I'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. ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] mirror -R -v -n ?
local listing root@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 group899635 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 root@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 group899635 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 ? On 12/02/13 10:41, SanskritFritz wrote: On Thu, Jan 3, 2013 at 5:07 PM, p cooper p...@medalto.co.uk wrote: I'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. ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] mirror -R -v -n ?
On Tue, Feb 12, 2013 at 09:26:01PM +, p cooper wrote: 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 ? It could if the server has a bug in MDTM command (and also SITE UTIME or whatever command is used to set modification time of the files). You can try to use mirror --ignore-time or set ftp:use-mdtm off. If you turn on debug you will see what timestamp the server returns for MDTM command and what commands lftp uses to set modification time of the files. -- Alexander. ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] mirror -R -v -n ?
I havent got access to rsync on the remote server. I ve had a go at using curlftpfs to nount the remote filesystem adn use the local fielsystem to write the temporaroy files, but havent got it to work (yet) I wonder if its something to do with timestamps and lftp recognising files as the same/newer. On 03/01/13 23:55, Jonathan Molyneux wrote: Hi Paul, Do you have to use ftp for this task ? rsync would probably be a more suitable fit for the purpose. On 4/01/2013 3:56 AM, p cooper wrote: I'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 hasnt been changed on the local machine . Is this correct ? if so , what i want is to just transfer any changed/new/ files can anyone help me out ? ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
[lftp] mirror -R -v -n ?
I'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 hasnt been changed on the local machine . Is this correct ? if so , what i want is to just transfer any changed/new/ files can anyone help me out ? ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] mirror -R -v -n ?
Hi Paul, Do you have to use ftp for this task ? rsync would probably be a more suitable fit for the purpose. On 4/01/2013 3:56 AM, p cooper wrote: I'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 ? if so , what i want is to just transfer any changed/new/ files can anyone help me out ? ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp