From d69342ea8bd54b24e26a39b361e4b412c145d0c2 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 12 Apr 2022 17:01:05 -0400 Subject: [PATCH] Updated Upgrading or Merging Archives (markdown) --- Upgrading-or-Merging-Archives.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Upgrading-or-Merging-Archives.md b/Upgrading-or-Merging-Archives.md index c94d816..f45539b 100644 --- a/Upgrading-or-Merging-Archives.md +++ b/Upgrading-or-Merging-Archives.md @@ -96,28 +96,29 @@ Two or more existing ArchiveBox collection dirs can be merged together by simply 2. Create a new empty archivebox collection in a new folder somewhere, this will hold the new merged collection ```bash - mkdir ~/archivebox_new - cd ~/archivebox_new + mkdir /path/to/archivebox_new + cd /path/to/archivebox_new archivebox init --setup ``` 3. Copy everything under `./archive/*` in each old collection into the new collection's `./archive/` folder ```bash - rsync --archive --info=progress2 /path/to/archivebox1/data/archive/ ~/archivebox_new/archive - rsync --archive --info=progress2 /path/to/archivebox2/data/archive/ ~/archivebox_new/archive + rsync --archive --info=progress2 /path/to/archivebox1/data/archive/ /path/to/archivebox_new/data/archive + rsync --archive --info=progress2 /path/to/archivebox2/data/archive/ /path/to/archivebox_new/data/archive # ...repeat the same for each collection if merging more than two ``` 4. Run `archivebox init` in the new merged collection to regenerate the new index ```bash - cd ~/archivebox_new + cd /path/to/archivebox_new archivebox init --setup ``` 5. The new collection should now contain all the entries from the old collections combined ```bash - cd ~/archivebox_new + cd /path/to/archivebox_new archivebox status + archivebox update --index-only # optionally update the snapshot index.{json,html} files ``` ---