mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #1436] Support: How to restore accidentally deleted docker-compose.yml file #3877
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#3877
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @satonotdead on GitHub (May 26, 2024).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1436
I accidentally removed my docker-compose files. While I can start from scratch, I have many archived pages that I want to preserve and transfer to my new instance.
What's the best way to achieve this?
My container is currently resetting itself due to missing Chrome credentials. However, I believe the archived files are still present, as I haven't deleted the Docker library folder or the persistent data bound in the docker-compose file.
@pirate commented on GitHub (May 27, 2024):
No special procedure is needed to recover if your data/ folder is intact, simply restart the container with the same version you were using before and it should start up as usual.
(Don't use
dev:right now, stick to:stable)@satonotdead commented on GitHub (May 28, 2024):
Great, thanks!
And what about moving ArchiveBox to another server? That's why I'm trying to re-enable it first, just to ensure everything is properly archived.
@pirate commented on GitHub (May 28, 2024):
Nothing special needed, just move the
data/folder anddocker-compose.yml, all the application state is insidedata/.@satonotdead commented on GitHub (May 31, 2024):
Nice, thanks! But I'm still can't enter to the instance in order to verify if everything is OK.
How can I deal with this, when there is no
docker-compose.ymlor possibility to enter into the container because it's restarting itself?I tried to modify Archivebox.conf adding the variable
CHROME_BINARY = /usr/bin/chromium archivebox versionbut it didn't work.PS: I'm archiving public pages so I don't need websites login credentials.
@pirate commented on GitHub (May 31, 2024):
It looks like you're on an unstable dev build, can you change the
docker-compose.ymlimage line to useimage: archivebox/archivebox:stable, thendocker compose pulland try again?@satonotdead commented on GitHub (Jun 1, 2024):
Unfortunately, I lost my
docker-compose.ymlfile. Is there a way to change the image within the container?Thank you again. I'm also moving the files to a new instance, which might be enough.
@pirate commented on GitHub (Jun 1, 2024):
The container itself is ephemeral, there is nothing kept between runs other than whats in
./data. (It's not like a VM where you have to keep track of a whole boot drive worth of files)You can simply re-download the
docker-compose.ymlfile fromhttps://docker-compose.archivebox.io, put it next to./dataand run it again as you did before.There is also lots more info on this subject available here, maybe it's helpful:
https://github.com/ArchiveBox/ArchiveBox/wiki/Upgrading-or-Merging-Archives