mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
[Backup] Leading slash (/) added to SFTP Remote Server Path #201
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hsmeets on 8/4/2024
CloudPanel version(s) affected
2.4.2
Description
When configuring SFTP Backups for Rsync.net storage, I have to specify the Remote Server Path without a leading slash (/), to prevent targeting the file system root (keep the path relative to the user home folder).
However, backups are not working and the notifications suggest that CloudPanel is adding a leading slash to the path, which was not submitted in the settings form.
How to reproduce
Possible Solution
No response
Additional Context
Command " : /usr/bin/sudo /usr/bin/rclone -v copy '/home/test/tmp/backup.tar' remote:'/test/2024-08-05/01.09/home/test/' --config='/root/.config/rclone/rclone.conf'" failed, error message: 2024/08/05 01:09:13 ERROR : backup.tar: Failed to copy: Put mkParentDir failed: mkdir "/test" failed: permission denied 2024/08/05 01:09:13 ERROR : Attempt 1/3 failed with 1 errors and: Put mkParentDir failed: mkdir "/test" failed: permission denied 2024/08/05 01:09:13 ERROR : backup.tar: Failed to copy: Put mkParentDir failed: mkdir "/test" failed: permission denied 2024/08/05 01:09:13 ERROR : Attempt 2/3 failed with 1 errors and: Put mkParentDir failed: mkdir "/test" failed: permission denied 2024/08/05 01:09:13 ERROR : backup.tar: Failed to copy: Put mkParentDir failed: mkdir "/test" failed: permission denied 2024/08/05 01:09:13 ERROR : Attempt 3/3 failed with 1 errors and: Put mkParentDir failed: mkdir "/test" failed: permission denied 2024/08/05 01:09:13 INFO : Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA - Errors: 1 (retrying may help) Elapsed time: 0.9s 2024/08/05 01:09:13 Failed to copy: Put mkParentDir failed: mkdir "/test" failed: permission denied