-
-
Notifications
You must be signed in to change notification settings - Fork 836
Description
Have you checked borgbackup docs, FAQ, and open GitHub issues?
Yes
Is this a BUG / ISSUE report or a QUESTION?
I don't know. Perhaps I do not understand how to use the command. I don't think it is a bug, but I am probably not using the command correctly.
System information. For client/server mode post info for both machines.
This is not using client/server mode. Borg is installed on same VPS as it is backing up.
Your borg version (borg -V).
[root@vps borg]# borg --version
borg 1.4.0
Operating system (distribution) and version.
It is Archlinux so no version. It is a rolling release and has been updated fairly recently with pacman
Hardware / network configuration, and filesystems used.
It is a linode VPS 4 vCPU, 16GB RAM 320 GB disk and 60 GB storage volume for borg and other stuff.
How much data is handled by borg?
It has filled up 30 GB of my /mnt/storage even with retention policies that are fairly restrictive. I want to just prune everything to the last 7-10 days of backups. I am probably using the command incorrectly but I have read a lot of the docs and don't know what i am doing wrong
Full borg commandline that lead to the problem (leave away excludes and passwords)
I run the following command but nothing gets freed up. Perhaps I am not using the command correctly or misunderstanding what the command is doing.
[root@vps borg]# borg prune -v --list --keep-within=10d vps.linode.**********.com/
Keeping archive (rule: within #1): vps-2024-12-12T03:16:01.290874 Thu, 2024-12-12 03:16:01 [a12b5cbbf0284e267e3bab731da548dd855b6aa9c606b6c5c91e4defcc2d6bdf]
[root@vps borg]# du -sch
20G .
20G total
[root@vps borg]# borg compact vps.linode.**************.com/
[root@vps borg]# du -sch
20G .
20G total
Describe the problem you're observing.
I am expecting just the last 10 days of archives kept but I don't see any change and my backups are going back to mid November. It is Dec 13 at the time of this writing. I can append the ls -la of the actual archive if required.
I assume it is the one in this directory below:
[root@vps borg]# pwd
/mnt/storage/backups/borg
[root@vps borg]# ls -la
total 12
drwxr-xr-x 3 root root 4096 Dec 13 20:58 .
drwxr-xr-x 9 root root 4096 Oct 8 22:01 ..
drwx------ 3 root root 4096 Dec 13 21:41 vps.linode..com
[root@vps borg]# cd vps.linode..com/
[root@vps vps.linode..com]# ls
config data hints.481 index.481 integrity.481 README
[root@vps vps.linode..com]# cd data/
[root@vps data]# ls -la
total 12
drwx------ 3 root root 4096 Dec 13 21:10 .
drwx------ 3 root root 4096 Dec 13 21:41 ..
drwx------ 2 root root 4096 Dec 13 21:41 0
[root@vps data]# cd 0
[root@vps 0]# pwd
/mnt/storage/backups/borg/vps.linode.***********.com/data/0
Please note that it is not in append_only mode. See below:
[root@vps vps.linode.**************com]# cat config
[repository]
version = 1
segments_per_dir = 1000
max_segment_size = 524288000
append_only = 0 <<<<<<<<<<<<<<<<<<<<<<<<<<
storage_quota = 0
additional_free_space = 0
id = ******************