Below are two editions of the script for organizing data backup (backup) with VDS Linux. Both versions once a week, on Sundays, create a complete copy of all data and the MySQL database, and in the rest - only incremental archives. To run automatically, add a line like the following to the cron job manager:
10 0 * /root/bin/backup.sh >/dev/null 2>&1
For the scripts to work, the amount of free disk space in the system must exceed the size of the copied data. ободного места на диске в системе превышал размер копируемых данных.