Skip to content

ftp backend time support #2384

Closed
Closed

Description

@Brandhor

I understand that when you upload a file to ftp the modified time is actually the uploaded time but what about when you download it? right now if you copy a file from ftp with the same size which has been modified it gets ignored because the date is not used

Activity

  1. added this to the Help Wanted milestone on Jul 8, 2018
  2. ncw commented on Jul 8, 2018

    @ncw
    Member

    Modtime support for FTP would be nice. However in order for rclone to have modtime support in a backend it needs to be able to set the modified time which isn't part of any FTP standards.

    However I found a description of the possible time setting methods for FTP so it looks like there are non standard extensions which might work.

    Fancy working on this?

  3. Brandhor commented on Jul 8, 2018

    @Brandhor
    Author

    unfortunately I don't have any experience with golang but what I meant is that at the very least if ftp is the source rclone should still be able to use the date provided by the ftp server for comparison

  4. ncw commented on Jul 9, 2018

    @ncw
    Member

    what I meant is that at the very least if ftp is the source rclone should still be able to use the date provided by the ftp server for comparison

    I think you probably want to use the -u or --update flag and this should solve your problem

  5. Brandhor commented on Jul 9, 2018

    @Brandhor
    Author

    my bad I didn't read the full documentation before, only the short one in copy and I thought that wouldn't work since ftp doesn't support modified times, with -u it works exactly as I wanted

  6. ncw commented on Jul 9, 2018

    @ncw
    Member

    Great! I'll leave this open to track the idea of adding modified time support to the FTP backend which would also solve your issue.

  7. vicmarto commented on Nov 22, 2020

    @vicmarto

    Would be very nice to have mod time support in the ftp backend .That would posibilite to use the really great feature of "--track-renames". Please?  :)

  8. self-assigned this
    on Sep 18, 2021
  9. modified the milestones: Help Wanted, v1.57 on Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions