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

Fix clean command suggestion when using non-default port for remote targets #559

Open
ckotte opened this issue Sep 26, 2023 · 1 comment

Comments

@ckotte
Copy link

ckotte commented Sep 26, 2023

$ btrbk --version
btrbk command line client, version 0.32.6
$ sudo -u btrbk btrbk resume --progress
WARNING: Target subvolume "myhost.dyndns.com[1234]:/mnt/backup-system/myhost/root.20230913T1600" exists, but is not a receive target of "/mnt/btrfs/@snapshots/btrbk/root.20230913T1600"
WARNING: Please delete stray subvolumes: "btrbk clean myhost.dyndns.com[1234]:/mnt/backup-system/myhost"
WARNING: Skipping backup of: /mnt/btrfs/@snapshots/btrbk/root.20230913T1600
Creating backup: myhost.dyndns.com[1234]:/mnt/backup-system/myhost/root.20230914T1450
...
>>> myhost.dyndns.com[1234]:/mnt/backup-data/myhost/data.20230924T1500
>>> myhost.dyndns.com[1234]:/mnt/backup-data/myhost/data.20230925T1700
>>> myhost.dyndns.com[1234]:/mnt/backup-data/myhost/data.20230926T1300
>>> myhost.dyndns.com[1234]:/mnt/backup-data/myhost/data.20230926T1400
>>> myhost.dyndns.com[1234]:/mnt/backup-data/myhost/data.20230926T1505
>>> myhost.dyndns.com[1234]:/mnt/backup-data/myhost/data.20230926T1533
>>> myhost.dyndns.com[1234]:/mnt/backup-data/myhost/data.20230926T1600

NOTE: Some errors occurred, which may result in missing backups!
Please check warning and error messages above.
Please delete stray subvolumes: "btrbk clean myhost.dyndns.com[1234]:/mnt/backup-system/myhost"
Please delete stray subvolumes: "btrbk clean myhost.dyndns.com[1234]:/mnt/backup-data/myhost"

The suggested command btrbk clean myhost.dyndns.com[1234]:/mnt/backup-data/myhost doesn't work.

sudo -u btrbk btrbk clean myhost.dyndns.com\[1234\]:/mnt/backup-system/myhost
ERROR: Filter argument "myhost.dyndns.com[1234]:/mnt/backup-system/myhost" does not match any volume, subvolume, target or group declaration

The command has to be btrbk clean myhost.dyndns.com:1234/mnt/backup-system/icarus

Maybe it makes sense to change the output of the subvolume names too to the "real" name/location?

>>> myhost.dyndns.com:1234/mnt/backup-data/myhost/data.20230926T1300
@H0w4rd
Copy link

H0w4rd commented Jan 16, 2024

Thanks, I just wanted to create an issue like this, now I know how to change the clean command.

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