SFTP upload in temporary file during the upload

Hello

What is the problem you are having with rclone?

I would like to know if there is an option (in SFTP) that allow to upload to temporary file and rename the file to the good name at the end, when the upload is ended. An option seems to be mentionned in this post but I dontt find it.

Run the command 'rclone version' and share the full output of the command.

Last version 1.60.0

Which cloud storage system are you using? (eg Google Drive)

SFTP

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy file.tar remote:.

The rclone config contents with secrets removed.

[dassault]
type = sftp
port = 22
user= myuser
host = ftp.example.com
key_file = ~/...
use_insecure_cipher = false
shell_type = unix
md5sum_command = 
sha1sum_command = 

You can either move the file at the end to rename it or you can always use 'copyto' and give it the proper name.

rclone copy somefiletemp remote:
rclone move remote:somefiletemp remote:realname

rclone copyto somefiletemp remote:realname

Thanks for the copyto subcommand :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.