From 0f2233aef37f15f3d65e99154501af171300c702 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sun, 10 Nov 2024 10:10:29 +0200 Subject: [PATCH] Add --delete option to rsync command, so it removes non-existing files from the destination - The --delete option is needed to be passed to rsync during backups, Since otherwise the backup may contain superfluous files after the second run of rsync, because these files can be already removed at the source because of background merge - the --delete option is needed when restoring from backup in order to remove superfluous files from the destination directory. Otherwise these files may lead to inconsistent data at VictoriaLogs. --- docs/VictoriaLogs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/VictoriaLogs/README.md b/docs/VictoriaLogs/README.md index 9a1df208d..36e259cc0 100644 --- a/docs/VictoriaLogs/README.md +++ b/docs/VictoriaLogs/README.md @@ -197,7 +197,7 @@ Therefore, for a complete data **backup**, you need to run the `rsync` command * ```sh # example of rsync to remote host -rsync -avh --progress @: +rsync -avh --progress --delete @: ``` The first `rsync` will sync the majority of the data, which can be time-consuming. @@ -227,7 +227,7 @@ VictoriaLogs will automatically load this data upon startup. ```sh # example of rsync from remote backup to local -rsync -avh --progress @: +rsync -avh --progress --delete @: ``` It is also possible to use **the disk snapshot** in order to perform a backup. This feature could be provided by your operating system,