With this script it is possible to create an FTP backup of a web server and archive it directly on the Synology NAS.
_HOSTNAME="customer.myserver.tld"
_USERLOGIN="username"
_PASSWORD="password"
_BACKUP_NAME="MyBackupJob"
_REMOTE_DIR="path/to/dir"
_LOCAL_DIR="/volume1/Backup"
_REMOVE_DAYS="30"
The script automatically creates all required folders and files. It also checks that the log files are not larger than 50MB. If the files are larger, they will be moved. It is checked whether there are older backups and these are deleted if necessary, so that the NAS does not run out of hard disk space.
I don't take over any liability for possible damages which caused by the script!