Open MyUncleSam opened 2 years ago
Drop the trailing / at the end.
$ ./jotta-cli ignores test --pattern _container/ --path _container
Pattern [_container/] did not match path[/_container]
$ ./jotta-cli ignores test --pattern _container --path _container
Pattern [_container] matched path[/_container]
We'll get the docs updated tomorrow.
The next release will have a way of auto-patching from the old exclude system to the new one.
@coopersimon After upgrading jotta-cli version, the current .ignore
file stopped working (jotta uploaded everything).
In jotta-cli ignores --help
, I saw the command jotta-cli ignores use-version-2
and did it, and it fixed nothing.
After some checking, I saw the command jotta-cli ignores patch
and did it, but it says:
root@jottacloud:/src# jotta-cli ignores patch
ERROR error patching ignores:
[patch /backup/homes ignores: ([) not supported by patterns v2]
Now I'm stuck. What and how should I do to make my lengthy .ignore
file work again?
Using commands to add/remove ignores rules (and as The Only Way) is not a good idea. We need to EDIT the rules in our favorite editors (ex, vscode).
Hi bluet, right now we don't support []
in the new ignores system.
I'd love your feedback though:
For now, if you can find a workaround for having no []
, you could remove it from your ignores file and try patching again.
jotta-cli release (
jotta-cli version
): 0.12.50392Description of problem: I try to add ignores for folders using ignores v2 but it is not working.
Example: Backup-folder:
/backup/docker
Exclude-path:/backup/docker/_container
(folder)tried:
Expected: Not scanning and backing up
/backup/docker/_container
(folder) - removing backed up files from jotta-backup.jotta-cli status (
jotta-cli status
):Relevant logs for the issue (
~/.jottad/jottabackup.log or /var/lib/jotta/jottabackup.log
)Traceback
Additional info:
Maybe I am using it wrong - but there is no documentation how to use it, the only one is https://docs.jottacloud.com/en/articles/1437235-ignoring-files-and-folders-from-backup-with-jottacloud-cli which seems to be outdated/for version 1.