I've created a backup set with a slash '/' in the path, or, at least, I think, this is causing the problem. with the following commands:
bup index /mnt/cifs/0.12.$var_shar/ bup index --check /mnt/cifs/0.12.lotus_f/lotusChAO/ bup save -n 0.12.lotus_f/lotusChAO /mnt/cifs/0.12.lotus_f/lotusChAO/
It successfully indexed and saved everything, but I cannot list the backup after it.
When I do:
bup ls
It shows me:
0.12.lotus_f/lotusChAO
When I try to do either of the following commands:
bup ls 0.12.lotus_f/lotusChAO bup ls 0.12.lotus_f/lotusChAO/ bup ls 0.12.lotus_f/ bup ls lotusChAO bup ls lotusChAO/ bup ls 0.12.lotus_f\/lotusChAO/ bup ls 0.12.lotus_f/lotusChAO/latest/
I get errors (depending on the path, given) like that:
error: no file '0.12.lotus_f' in '/'
error: no file 'lotusChAO' in '/'
Tried to ls with a hash:
bup ls -s
After getting the hash, tried to do:
bup ls a917e01b8ae0c207a8993b1211361ec18c119c5c/
It gave me:
error: no file 'a917e01b8ae0c207a8993b1211361ec18c119c5c' in '/'
How to rename the backup set from '0.12.lotus_f/lotusChAO' to, like '0.12.lotus_f', or some other way to fix this issue.
I've read all the docs, that I could find and searched on the internet, but couldn't find anything, that could help.
My environment, where bup is installed:
Ubuntu server 16.04.1 LTS, kernel: 4.4.0-89-generic, x86_64 BUP version: debian/0.27-2 (the latest from the binary ubuntu repo).
Iar De <igory...@gmail.com> writes:
> git --git-dir "$BUP_DIR" update-ref -d 0.12.lotus_f/lotusChAO
>
> worked without errors, but doing 'bup ls' still showed
> '0.12.lotus_f/lotusChAO' in list.
> So, I thought, that I probably need to follow the above command with the
> '--delete' version and I did:
>
> git --git-dir "$BUP_DIR" update-ref -d 0.12.lotus_f/lotusChAO
> git --git-dir $BUP_DIR branch --delete 0.12.lotus_f/lotusChAO
>
> the 1st command performed without error, the second command gave me the
> same error, as before:
At this point, I wouldn't expect branch --delete to work, but I wonder
why update-ref didn't get rid of the branch. Do you still see that
branch here?
find "$BUP_DIR"/refs/heads