Altinity / clickhouse-backup

Tool for easy backup and restore for ClickHouse® using object storage for backup files.
https://altinity.com
Other
1.29k stars 226 forks source link

Some errors while create backup using FTP #1002

Closed amakeenk closed 2 months ago

amakeenk commented 2 months ago

OS: ALT Server 10.2 x86_64

Packages:

When creating a backup using FTP, errors of the following type occur:

# clickhouse-backup create_remote test_backup_ftp

2024/09/02 10:38:41.633930  warn MkdirAll MakeDir(test_backup_ftp) return error: 550 test_backup_ftp: Permission denied logger=FTP
2024/09/02 10:38:41.634300  warn MkdirAll MakeDir(test_backup_ftp/shadow) return error: 550 test_backup_ftp/shadow: No such file or directory logger=FTP
2024/09/02 10:38:41.635000  warn MkdirAll MakeDir(test_backup_ftp/shadow/test_db) return error: 550 test_backup_ftp/shadow/test_db: No such file or directory logger=FTP
2024/09/02 10:38:41.635161  warn MkdirAll MakeDir(test_backup_ftp/shadow/test_db/test_table) return error: 550 test_backup_ftp/shadow/test_db/test_table: No such file or directory logger=FTP

But the backup is created and then restored successfully.

Slach commented 2 months ago

These are just a warning, during concurrently creation sub-folders during upload data parts You could ignore it or you are welcome to make Pull Request to ftp.go to fix it