Add ability to keep local cache for debmirror's repo syncs
Add new cache_dir parameter to keep local cache for debmirror
repo and re-use it. During first run debmirror will create
cache and then using hardlinks cache will be copied to target
repo. All next runs will copy cache first and then run debmirror
with prepared cached.
Change-Id: Ib7932e64c75743b06b3b12507fe87a30d4d93311
diff --git a/README.rst b/README.rst
index b89a4cc..653a21d 100644
--- a/README.rst
+++ b/README.rst
@@ -30,6 +30,7 @@
arch: [ 'amd64' ]
mirror_host: "mirror.mirantis.com" # rsync
mirror_root: ':mirror/nightly/ubuntu/'
+ cache_dir: "/var/www/mirror/.cache/ubuntu"
target_dir: "/var/www/mirror/ubuntu/"
log_file: "/var/www/mirror/target01_log.log"
dist: [ xenial ] #, xenial-security, xenial-updates ]
@@ -46,3 +47,7 @@
07: "--include='/main(.*)manpages'"
08: "--include='/main(.*)python-(.*)doc'"
09: "--include='/main(.*)python-(.*)network'"
+
+Parameter cache_dir is optional and can be used to avoid extra disk space
+usage for repos, which can have same packages, by using hardlinks to files.
+