What is the problem you are having with rclone?
Previously: Update SetModTime failed: SetModTime failed: sftp: "Permission denied" (SSH_FX_PERMISSION_DENIED)
Update SetModTime failed: SetModTime failed: sftp: “Permission denied” (SSH_FX_PERMISSION_DENIED)
What is your rclone version (output from rclone version
)
1.5.3
1.5.5
1.56.0-beta.5357.b89d085cb
Which OS you are using and how many bits (eg Windows 7, 64 bit)
UnRAID 6.9.1
Which cloud storage system are you using? (eg Google Drive)
N/A - SFTP to a known server
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
WAS USING:
rclone sync --config .rclone.conf "...path..." Disk3-Remote-Encrypted: --delete-before --transfers=4 --check-first --sftp-set-modtime=false --checkers 4 -P --stats=1m --stats-one-line --buffer-size=64M --log-level DEBUG
NOW USING:
rclone sync --config .rclone.conf "...path..." Disk3-Remote-Encrypted: --delete-before --transfers=4 --check-first --sftp-set-modtime=false --checkers 4 -P --stats=1m --stats-one-line --buffer-size=64M --log-level DEBUG
The rclone config contents with secrets removed.
[Disk3-Remote-Encrypted]
type = crypt
password = BLAH
remote = Remote:/BU/Disk3
[Remote]
type = sftp
user = BLAH
host = BLAH
key_file = BLAH-BLAH
key_file_pass = BLAH
key_use_agent = false
port = BLAH
use_insecure_cipher = false
md5sum_command = none
sha1sum_command = none
A log from the command with the -vv
flag
2020/12/19 02:48:24 ERROR : Attempt 3/3 failed with 349 errors and: Update SetModTime failed: SetModTime failed: sftp: "Permission denied" (SSH_FX_PERMISSION_DENIED)
2020/12/19 02:48:24 Failed to sync with 349 errors: last error was: Update SetModTime failed: SetModTime failed: sftp: "Permission denied" (SSH_FX_PERMISSION_DENIED)
Following on from solving this...
I've run into another problem due to a solution presented in a previous thread of mine (Update SetModTime failed: SetModTime failed: sftp: "Permission denied" (SSH_FX_PERMISSION_DENIED))
So TL;DR, my log was getting full of "...(SSH_FX_PERMISSION_DENIED)" errors and it was suggested that I use --sftp-set-modtime=false.
However, as this then prevented the mod time from being set correctly, rclone continually kept updating the same files (because the local and remote mod times did not match), creating a huge backlog (400GB and 150k files).
Therefore unfortunately I'm back at square one.
I cannot use --sftp-set-modtime=false as this prevents the actual backup from working correctly.
Therefore what commands do I need to use either instead or in combination with --sftp-set-modtime=false such that
A) The modtimes of new files (that don't and will never changed) get set correctly so that when the next backup starts it doesn't upload them all again.
B) Do something with the files that cause the (SSH_FX_PERMISSION_DENIED) errors (either delete and re-upload, silence the error, etc.)
Other than these little hiccups, rclone seems to work perfectly...!!