: Function WP_Styles::add was called incorrectly. The style with the handle "hello-elementor-child-style" was enqueued with dependencies that are not registered: hello-elementor-theme-style. Please see Debugging in WordPress for more information. (This message was added in version 6.9.1.) in /home/csrkub/domains/cube-vps.com/public_html/wp-includes/functions.php on line 6131
Notice: Function WP_Scripts::add was called incorrectly. The script with the handle "gpress-custom-js" was enqueued with dependencies that are not registered: gpress-siema. Please see Debugging in WordPress for more information. (This message was added in version 6.9.1.) in /home/csrkub/domains/cube-vps.com/public_html/wp-includes/functions.php on line 6131
*Cube-Host– full cloud services!!
Automating backups on Linux VPS is a basic data protection measure that saves you from errors, crashes, and failed updates. Even if the server is running smoothly, any incident—from a damaged file system to accidental deletion—can lead to serious losses. A properly configured backup system solves this problem once and for all: copies are created automatically, stored in an orderly manner, and quickly restored when needed.
Before automating the process, it is important to determine what exactly needs to be stored. Usually, this includes:
Create a directory for backups:
Permissions 700 restrict access to the directory, which is important for security.
The main archiving tool in Linux is tar. It is stable, fast, and supported by all systems.
Example of creating a backup:
What is happening here:
The date format of the names makes it easy to find the right archive by creation time.
List of created archives:
If the file is displayed, its size is realistic — you can add one more check:
This command displays the contents of the archive. If it is readable, the archive is in order.
Next, the most important thing: make sure that backups are created automatically.
Open cron:
Add the line:
Decryption:
In the morning, there will be a fresh archive in /backup.
Storing all backups on the same VPS is risky. The best option is to transfer them to a remote server or dedicated storage.
Command for manual sending:
Advantages of rsync:
Adding to cron:
Now copying happens automatically, right after the archive is created.
To keep the /backup directory from getting too full:
Deletes archives older than 7 days. The time period can be customized to suit your needs.
Command for cron:
It is convenient to collect the entire plan in one place:
This set is sufficient for full automation.
If archives take too long to create, the disk subsystem is overloaded, or the server freezes during backup, this is a clear sign that you don’t have enough resources. Sometimes it is easier to switch to a VPS with higher performance than to try to optimize the minimum configuration.
Backup automation on Linux VPS is based on a simple but reliable scheme: daily creation of archives, their transfer to an external server, and regular cleaning of old data. All this takes a few minutes to set up, but ensures the smooth operation of the project for many years to come. A properly organized backup system frees the administrator from routine tasks and ensures that data can be restored at any time.