Skip to content
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

Find out what files/folders are taking up space in backups #8650

Open
redfast00 opened this issue Jan 21, 2025 · 1 comment
Open

Find out what files/folders are taking up space in backups #8650

redfast00 opened this issue Jan 21, 2025 · 1 comment
Labels

Comments

@redfast00
Copy link

I use borg to back up my laptop to a remote server over SSH. This works great, I've been using this for 4 years now and I'm still happy.

One issue I do have, is that the size of the backups on the remote server is getting bigger than I expect. I've been careful with the --exclude, but I still suspect that there might be some files/directories that are back upped that don't need to be (for example, big files like Linux ISO's, or some caches, ...). I would like to see what directories take up how much space (this can be unified across all backups). Using that info, I could then add the files to the exclude list, and possibly remove them from old backups.

On Linux, this is pretty easy: du -h / 2>/dev/null | sort -h; ideally, there would be a similar output, but then accross all archives of a repository, taking into account the deduplication

...
55G	/home/user/VirtualBox VMs/WinDev2404Eval
69G	/var/cache
69G	/var/cache/pacman
69G	/var/cache/pacman/pkg
74G	/var
78G	/home/user/VirtualBox VMs
112G	/home/user/oldfs/home/jdv/ugent/archief
114G	/home/user/oldfs/home/jdv/ugent
144G	/home/user/Downloads
290G	/home/user/oldfs/home
290G	/home/user/oldfs/home/jdv
344G	/home/user/oldfs
741G	/home
741G	/home/user
858G	/
@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Jan 22, 2025

We have something related in borg2 (still beta, don't use it for production):

https://borgbackup.readthedocs.io/en/master/usage/analyze.html

IIRC the size display there is somehow flat though, so it won't include stuff contained in subdirs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants