Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ideascube ideascube
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 203
    • Issues 203
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ideascube
  • ideascubeideascube
  • Merge requests
  • !922

ZIM files moved from cache instead of copied

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open rgaudin requested to merge rgaudin/ideascube:move-zims-from-package-cache into master May 28, 2018
  • Overview 4
  • Commits 1
  • Pipelines 1
  • Changes 2

If not using --keep-downloads, then ZIM files are moved instead of copied then removed

  • reduces space usage
  • faster if on same disk

Not sure it's the proper way to go but it was the simplest/less intrusive for me.

For pibox-installer, it is required that we save time and space by moving the ZIM files instead of copying them into their proper destination within ideascube.

Using the opposite of --keep-downloads seems to make sense as a user not specifying it would not see the difference and a user specifying it would understand that it implies a copy.

In pibox/ansiblecube, we'd now use something like this where /var/ideascube/kiwix would be on the same disk as /data/packages_cache.

ideascube catalog install --package-cache /data/packages_cache wikipedia_fr_medicine.fr

Tested successfuly on a raspberry Pi.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: move-zims-from-package-cache