borg icon indicating copy to clipboard operation
borg copied to clipboard

Enhancement: Include execution path in backup info.

Open BloodBlight opened this issue 3 years ago • 1 comments

Have you checked borgbackup docs, FAQ, and open Github issues?

As best I could, searching for this is a bit tricky.

Is this a BUG / ISSUE report or a QUESTION?

Enhancement

System information. For client/server mode post info for both machines.

Ubuntu

Your borg version (borg -V).

borg 1.1.15

Describe the problem you're observing.

When performing a backup using a relative path, the backup targets location is lost as the execution path is not included in the backups info (as best as I can tell).

I use relative paths a lot to keep backups cleaner, but really, this would just be a nice to have. Something like this:

# borg info Borg::Laptop-2020-07-21_00-09
Archive name: Laptop-2020-07-21_00-09
Archive fingerprint: ##########################
Comment: 
Hostname: ThatOneBox
Username: root
Time (start): Tue, 2020-07-21 00:09:23
Time (end): Tue, 2020-07-21 00:14:05
Duration: 4 minutes 42.11 seconds
Number of files: 52480

**-->Working Directory: /Backups/ThatFolder/IWasHere **

Command line: /###Some Path###/borg-linux64 create --compression zstd,10 --stats --progress /###Some Path###/Borg::Laptop-2020-07-21_00-09 .
Utilization of maximum supported archive size: 0%
------------------------------------------------------------------------------
                       Original size      Compressed size    Deduplicated size
This archive:               41.45 GB             38.31 GB             44.08 MB
All archives:                8.73 TB              7.58 TB            500.53 GB

                       Unique chunks         Total chunks
Chunk index:                  576670             12360722

BloodBlight avatar Jan 28 '22 18:01 BloodBlight

So we would need an additional archive metadata entry like cwd: /current/working/directory.

There is a bit of overlap and potential contradiction here with #4685 (in that case, the "cwd" would change while borg is creating one archive).

ThomasWaldmann avatar Jan 29 '22 00:01 ThomasWaldmann

This needs these changes:

  • the cwd needs to be put into archive metadata, key "cwd"
  • borg info needs to show the cwd

ThomasWaldmann avatar Dec 15 '25 09:12 ThomasWaldmann