@DustinB3403 said in Doubt on a script- Backup site & DB:
Here is a topic from the ubuntu forums.
Are you trying to delete files from the source or the destination?
If from the destination
"rsync -avh source/ dest/ --delete"Might be how you need to enter the command.
The first line on the script cleans up old backup files, so during rsync i want to compare the source and destination and cleanup accordingly. I will try with the --delete at the end and see if that helps



