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

How to delete or rename a repository #192

Open
Tha-Fox opened this issue Feb 6, 2015 · 4 comments
Open

How to delete or rename a repository #192

Tha-Fox opened this issue Feb 6, 2015 · 4 comments

Comments

@Tha-Fox
Copy link

Tha-Fox commented Feb 6, 2015

I created my first attic repository and now I would like to change it's name since the current one is not too descriptive. Primarily I would rename it but is this possible? If I can't do that, secondarily I would delete the repository but can't find a command to do that from documentation. There is command to delete an archive but I need to delete the whole repository. I assume I can't just delete it from the filesystem on the target server.

@jmiserez
Copy link

Renaming a repository: Just rename the .attic folder. Renaming archives is not possible AFAIK.

Deleting a repository: Get the attic repository id by reading the config file in the .attic folder. In ~/.cache/attic/, delete the folder with the corresponding id. Delete the .attic folder.

@ThomasWaldmann
Copy link
Contributor

Almost I had answered "just rm -rf X", but that is only easy for the repo itself.

I just looked into my .cache/attic/ and found a ton of caches from testing.

So, I'ld say we rather need a "attic delete REPO" and stop using rm -rf for that.

Of course, as people might confuse killing an archive and a repo, this should get a --force option and if that is not given, it will ask rather clearly, whether one really wants to delete ALL the archives and the repo.

@ThomasWaldmann
Copy link
Contributor

See PR #226.

I tested it for local, but not for remote repositories. Help and feedback is welcome. :)

@ThomasWaldmann
Copy link
Contributor

See PR #251 for archive rename.

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

3 participants