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

Optional Backup Summary to the log #562

Open
Massimo-B opened this issue Sep 28, 2023 · 1 comment
Open

Optional Backup Summary to the log #562

Massimo-B opened this issue Sep 28, 2023 · 1 comment

Comments

@Massimo-B
Copy link

Hi, please provide an option to add the useful Backup Summary also to the logs.

The btrbk client prints the summary like this:

--------------------------------------------------------------------------------
Backup Summary (btrbk command line client, version 0.33.0-dev)

    Date:   Thu Sep 28 07:35:16 2023
    Config: /etc/btrbk/btrbk.conf
    Filter: all

Legend:
    ===  up-to-date subvolume (source snapshot)
    +++  created subvolume (source snapshot)
    ---  deleted subvolume
    ***  received subvolume (non-incremental)
    >>>  received subvolume (incremental)
--------------------------------------------------------------------------------
/mnt/btrfs-top-lvl/volumes/root
+++ /mnt/btrfs-top-lvl/snapshots/root/root.20230928T073516+0200
>>> /mnt/local/data/snapshots/root/root.20230928T073516+0200
>>> /mnt/usb/mobile/snapshots/desktop_one/root/root.20230928T073516+0200

/mnt/btrfs-top-lvl/volumes/home
+++ /mnt/btrfs-top-lvl/snapshots/home/home.20230928T073516+0200
>>> /mnt/local/data/snapshots/home/home.20230928T073516+0200
>>> /mnt/usb/mobile/snapshots/desktop_one/home/home.20230928T073516+0200
...
@Saroumane
Copy link

If you invoke btrbk as root, you could add >> /var/log/btrbk.log
Example :
/usr/bin/btrbk run >> /var/log/btrbk.log

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

No branches or pull requests

2 participants