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

diff against existing files #963

Open
anarcat opened this issue Apr 22, 2016 · 4 comments
Open

diff against existing files #963

anarcat opened this issue Apr 22, 2016 · 4 comments

Comments

@anarcat
Copy link
Contributor

anarcat commented Apr 22, 2016

the diff command (#177) is great in finding out what changed between different archives. however, it would also be useful to diff against existing files. i know that you can use FUSE to mount an archive and use external tools to diff against that, but it seems to me there are optimizations that could be done with an internal diff command. for example, one could diff an individual file and avoid the overhead of doing the FUSE mount and looking down the directory tree...

There was a discussion on the mailing list recently that touched on this subject: https://mail.python.org/pipermail/borgbackup/2016q2/000202.html

@enkore
Copy link
Contributor

enkore commented Apr 22, 2016

borg lists --format option also supports common hashes, which could get the job done in many cases. Especially if one just wants to run shaXXXsum on some files.

@DrupaListo-com
Copy link

note: still no progress on that one, although in the upcomming 1.1 release you will be able to diff between already backed-up archives.

To sum it up.

  1. diff against existing files - may be possible in one of 3 ways:
    1.1. use borg create -v --dry-run ... should work - I could not make it work - it ran but no diffs appeared on console
    1.2. borg mount and diff between live FS and the mount - painfully slow... but still doable - at least if u can mount the archives on localhost somehow (hard / impossible if your borg backups are remotely saved)
    1.3. just backup the live FS to create a new archive - and then diff this new one against the one before it using the latest git dev borg that is 1.1-dev-something. NOTE: borg diff does not exist in latest stable borg = 1.0.6, you need to install it via https://borgbackup.readthedocs.io/en/stable/installation.html#git-installation

and then from within the virtualenv where you have borg 1.1+ you can borg diff....
caveat 1: u will need to use sudo
caveat 2: u will need to use sudo + the full path to the borg executable in the venv...

@mortee
Copy link

mortee commented Nov 22, 2023

Is this issue completely abandoned?

@ThomasWaldmann
Copy link
Member

@mortee Issue is not closed.

But OTOH other stuff has higher priority and there are limited developer resources.

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

No branches or pull requests

5 participants