From b971e2dfdfd165fd44c8d9e9be7af9c2fd05868d Mon Sep 17 00:00:00 2001 From: Natalie Martin Date: Wed, 18 Oct 2023 14:17:16 -0500 Subject: [PATCH] Add `--inplace` flag instructions to README In new versions of rclone it will try to upload to ".partial" files by default and rename them to the proper destination filename after uploading is fully completed. Unfortunately, we have not implemented the rename command in SFTP yet, so this current upload flow doesn't work with the sftp-service. Add instructions to the README to show users which flag to pass into rclone to get it to work. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e6cb788a..b7fe111e 100644 --- a/README.md +++ b/README.md @@ -132,10 +132,10 @@ See [rclone.org/commands/rclone_copy](https://rclone.org/commands/rclone_copy/) #### Uploading to Permanent: -To send data to Permanent, just reverse the order of operands: your local file tree is now the source and Permanent is the destination. You'll also need to add the `--size-only` and `--sftp-set-modtime=false` flags (currently necessary because of [issue #80](https://github.com/PermanentOrg/sftp-service/issues/80)). Here's an example command: +To send data to Permanent, just reverse the order of operands: your local file tree is now the source and Permanent is the destination. You'll also need to add the `--size-only` and `--sftp-set-modtime=false` flags (currently necessary because of [issue #80](https://github.com/PermanentOrg/sftp-service/issues/80)). On the newest versions of rclone, you will also have to pass in the `--inplace` flag to upload properly (this is related to [issue #164](https://github.com/PermanentOrg/sftp-service/issues/164)). Here's an example command: ``` - rclone copy -v -P --create-empty-src-dirs --size-only --sftp-set-modtime=false ./some-archive "permanent-prod:/archives/Some Archive (12345)/My Files/" + rclone copy -v -P --create-empty-src-dirs --inplace --size-only --sftp-set-modtime=false ./some-archive "permanent-prod:/archives/Some Archive (12345)/My Files/" ``` ### Troubleshooting rclone