Thank you for your answer!
Maybe here is the confusion:
When I run a backup, it will do a DB backup first (add-db-pre) and safe it to the destination folder, which will be backuped in the backup. But I want to send the db backup into the same bucket in a separate folder. Just like you did it in the full example tutorial here.
This is what I did:
I created a new profile with:
sudo webinoly -backup=s3 -profile=patric_itrokkz_website -bucket=itrokkz-bkp/patric_itrokkz_website -source=/var/www/patric.itrokkz.website -s3-compatible-endpoint=https://ams3.digitaloceanspaces.com
Then I added add-db-pre:
sudo webinoly -backup=s3 -profile=patric_itrokkz_website -add-db-pre=patric.itrokkz.website -destination=/var/www/patric.itrokkz.website/db-backup -max=5 -bucket=itrokkz-bkp/database_bkp -s3-compatible-endpoint=https://ams3.digitaloceanspaces.com
Then, I run the backup with:
sudo webinoly -backup=s3 -profile=patric_itrokkz_website -run
And I get this Error:
--- Start running command PRE at 2022-07-09 15:33:01.936 ---
Running '/root/.duply/patric_itrokkz_website/pre' - OK
Output: Backup is in process, wait...
Database local backup successfully done! (/var/www/patric.itrokkz.website/db-backup/webinoly-backup-db_patric.itrokkz.website_2022-07-09-15:33:02.sql)
[ERROR] Can not connect with your bucket!
--- Finished state OK at 2022-07-09 15:33:03.850 - Runtime 00:00:01.914 ---
The database backup was done and saved in the destination folder. But the database backup (add-db-pre) was not sent to the bucket itrokkz-bkp/database_bkp
The backup of the folder (source) was done, and I can see the files in the bucket itrokkz-bkp/patric_itrokkz_website (commands BKP, POST, VERIFY, PURGE have no errors).
So, it's just that the add-db-pre is not sending the database backup to the same bucket into a different folder.