Fix readme for archiving

This commit is contained in:
Wojciech Kozlowski 2023-03-03 20:16:32 +01:00
parent 7530583f40
commit fba3e754df

View File

@ -172,17 +172,21 @@ All steps below are to be executed as the `music` user.
3. Run `nextcloud-upload /var/tmp/music/mp3/<artist>` for every artist to upload to Nextcloud. 3. Run `nextcloud-upload /var/tmp/music/mp3/<artist>` for every artist to upload to Nextcloud.
4. Remove the `/var/tmp/music/mp3/<artist>` directory. 4. Remove the `/var/tmp/music/mp3/<artist>` directory.
#### Collections
Every track has a `compilation` tag at track-level as well as at album-level (at least in Beets). To
label the album as a compilation for sorting purposes, run `beet modify -a <album> comp=True`.
### Archive music ### Archive music
#### From rip #### From rip
1. Run `beet --config .config/beets/archive.yaml import /var/lib/yggdrasil/home/music/rip`. This 1. Run `beet --config .config/beets/archive.yaml import --move /var/lib/yggdrasil/home/music/rip`.
will move the music files to `/var/lib/yggdrasil/data/music/archive`. This will move the music files to `/var/lib/yggdrasil/data/music/archive`.
#### From collection #### From collection
1. Run `beet --config .config/beets/archive.yaml import 1. Run `beet --config .config/beets/archive.yaml import
/var/lib/yggdrasil/data/music/collection/<artist>/<album>`. This will copy the music files to /var/lib/yggdrasil/data/music/collection/<artist>/<album>`. This will copy the music files to
`/var/lib/yggdrasil/data/music/archive`. `/var/lib/yggdrasil/data/music/archive`.
2. Run `beet remove -d -a artist:"<artis>" album:"<album>"`. This will remove the music files from 2. Run `beet remove -d -a "album:<album>"`. This will remove the music files from the collection.
the collection.