UnS3eN
Basic Pleskian
- Server operating system version
- AlmaLinux 8.10
- Plesk version and microupdate number
- 18.0.61 #5
Trying to figure out how to automate backups to FTP for each new domain. As it stands, the only way I can see is doing it for each domain manually: go to the domain, click Backup & Restore, add remote storage settings, schedule backups.
I was hoping there was a better way of automating it so it's on by default for each new domain.
I tried adding the settings to the database directly via a script, but the issue is that the password seems to be individually encrypted, so when the script runs the value doesn't actually get saved and just gets added blank.
Is there a way around this or am I forever cursed to manually add settings for each new domain?
I was hoping there was a better way of automating it so it's on by default for each new domain.
I tried adding the settings to the database directly via a script, but the issue is that the password seems to be individually encrypted, so when the script runs the value doesn't actually get saved and just gets added blank.
Code:
| 324 | domain | backup_ftp_settingactive | true |
| 324 | domain | backup_ftp_settinghost | 192.168.98.70 |
| 324 | domain | backup_ftp_settingdirectory | backups/domain.tld |
| 324 | domain | backup_ftp_settinglogin | pleskbkp |
| 324 | domain | backup_ftp_settingpassword | $AES-128-CBC$encryptedpassword== |
| 324 | domain | backup_ftp_settingpassive_mode | true |
| 324 | domain | backup_ftp_settinguse_ftps | false |
| 324 | domain | backup_ftp_settingbackup_password | |
Is there a way around this or am I forever cursed to manually add settings for each new domain?