mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #894] Question: How to run AB on localhost but store data on NAS? #3575
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#3575
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 @iwconfig on GitHub (Nov 24, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/894
Hello!
I'm using docker-compose. Following the title if this issue: I first tried changing the whole data dir to a mounted path pointing to my NAS, but I got this error:
I cannot figure out how to separate
data/archive/from the rest as I wish to store this on my NAS. I tried symlinking it but it just complains thatdata/archive/already exists.I would prefer to have as much data on my NAS so all or any of
data/{logs,sonic,sources}/as well.How do I setup this with docker-compose?
Thank you kindly! in advance.
@pirate commented on GitHub (Nov 26, 2021):
Symlink works but you have to mount the destination of the symlink in docker-compose as a volume as well (to the same location the symlink is pointing to, except inside the container).
@iwconfig commented on GitHub (Nov 26, 2021):
I'm sorry, I don't understand this. Can you give me an example?
Since
ArchiveBox.confandindex.sqlite3needs to be on host and not on NAS, how do I separate them from the rest?I've tried many different variations, for example:
But this doesn't work as the folders are created in host
./data. I don't know when I should create my symlinks either because AB complains if a folder (symlink) already exist or creates the folders before I have a chance to create my symlinks. It doesn't matter if I remove folder(s) and then create my symlink(s), it still complains about what I believe is FSYNC.What am I missing?
@cmuench commented on GitHub (Dec 10, 2021):
@iwconfig I was able to share my archive directory on my Synology NAS.
I mouted the archive directory directly from NFS.
Difference is that I used docker to create the mount instead of fstab. Hope that also works on your side.
@iwconfig commented on GitHub (Dec 10, 2021):
Thank you so much! I got it working now 😃 I just had one issue with permissions inside the docker container, so I had to do
Awesome! Again, thank you!
@pirate Maybe this should be mentioned in the documentation? If it already is, I'm sorry, I haven't seen it.
@pirate commented on GitHub (Apr 12, 2022):
Note I've added a new DB/filesystem troubleshooting area to the wiki that may help people arriving here from Google: https://github.com/ArchiveBox/ArchiveBox/wiki/Upgrading-or-Merging-Archives#database-troubleshooting
Contributions/suggestions welcome there.