-
-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Borg taking 2 days to complete backup as it is Replaying segments #8325
Comments
The possible reason can be unstable mount point. You can find more information here There is also a good article on how to identify a slowness problem And please use the latest version of borg if it is possible. |
@edsonsbj That's a big no-no in a script:
From the docs: Please use carefully and only while no borg process (on any machine) is trying to access the Cache or the Repository. As you automatically run that, it could be that 2 borg worked in that repository at the same time - an unsupported situation that is normally avoided by locking. Remove that from your script(s), run |
Here are some updates the Backup in question just ended up taking a total of just over 32 hours
|
"Replaying segments" shouldn't happen under normal circumstances. Either your had 2 borgs running simultaneously due to the automatically broken lock or there was some other unusual issue (server crash?). |
Minor issue:
You should exclude |
I add this part to the script because sometimes it is so slow that it does not release the repository and then ends up not performing the backup. As for simultaneous backups in the same repository, this does not happen because this repository would only be for Nextcloud data and only from one server. |
You mean exclude from backup like --patterns-from?
The script I am running would be this one |
If a backup run on that host takes longer than expected (see issue title) and your next backup job starts before the current one ended, you will have 2 borgs writing to the same repo, corrupting the repo. Borg's repository lock usually locks out the 2nd+ borg, but as long as your script contains |
To debug whether your exclude patterns work as intended, use |
So I brought new updates yesterday I ran the backup through cron at 22:30 where it completed successfully after almost 2 hours and 35 minutes and the only thing I added to the script was |
Follow Logs Nextcloud-07-08-2024_22-30.txt Once again, to be clear, there is no possibility of running 2 Borg tasks for the same repository or even for another repository. |
Have you checked borgbackup docs, FAQ, and open GitHub issues?
Yes
Is this a BUG / ISSUE report or a QUESTION?
BUG / ISSUE
System information. For client/server mode post info for both machines.
Your borg version (borg -V).
borg 1.4.0
Operating system (distribution) and version.
Ubuntu Server 24.04 LTS
Hardware / network configuration, and filesystems used.
ext4
rclone v.167
fuse
How much data is handled by borg?
1226579 files
Full borg commandline that lead to the problem (leave away excludes and passwords)
Describe the problem you're observing.
After a broken update of a program, I had to reinstall the server again and, to my surprise, since 01/06, my backups have become extremely slow, starting to take about 3 to 4 hours to complete the backup, when they complete at all.
For about a month now, things have only gotten worse, because instead of 3 to 4 hours on a given day, it gives an error that the mount is not available and ends the backup halfway through and the next day it starts the backup normally but it only finishes the next day or takes up to 2 days and within the log the information contained is that it is recreating the cache and then it starts the backup then stops halfway and starts to recreate the cache again.
I have already made several attempts, such as changing the cache storage, disabling the cache, some changes in rclone and even the cloud where the backup is stored. I have changed and nothing seems to have any effect.
Before the problem with the server, I was running Ubuntu 22.04 LTS and borg. 1.2.8
Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.
The problem occurs when running the Borg Create command where it takes a long time in an rclone assembly, taking up to 2 to 3 days to perform a backup of just a few MB's.
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: