# Beets import vs reimport and command line vs config.yaml

**URL:** https://discourse.beets.io/t/beets-import-vs-reimport-and-command-line-vs-config-yaml/770
**Category:** Help
**Created:** [May 27, 2019, 6:46pm UTC](https://discourse.beets.io/t/beets-import-vs-reimport-and-command-line-vs-config-yaml/770 "2019-05-27T18:46:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![evand](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/evand/32/238_2.png) [@evand](https://discourse.beets.io/u/evand)
#### Post date: [May 27, 2019, 6:46pm UTC](https://discourse.beets.io/t/beets-import-vs-reimport-and-command-line-vs-config-yaml/770/1 "2019-05-27T18:46:45Z")

</div>

Prior to experimenting with beets I leveraged my ocd to tag my library carefully using a tagger and a range of macros that took care of foldernames, filenames, etc. etc. As such I don’t want beets (or any other tool) to move my files, rename directories or modify metadata in my FLAC library…not yet anyhow. I’d first like to see the results - which I can do by browsing the beets db.

In any event, config.yaml as follows:

> directory: /alib  
> library: /home/x/beetsdb/beetsdb.blb  
> import:  
> copy: no  
> write: no

I then pointed beets to my library using the following, which I’ve understood to mean:

- no autotagging, just read the existing tags
- don’t move or copy my library, just leave it where it is
- don’t prompt to resume operations, just do it
- skip albums you’re unsure about
- write out a log file to /home/x/beetsdb/beets.log

> beet import -A -C -p -q -l /home/x/beetsdb/beets.log /alib

This then went about reading tags from my library and writing them out to the beets database.

I’ve since added additional albums to my library and would like to update the beets database. I’m intending to simply re-run the beet import outlined above, but have a few questions before I find my files inadvertently moved.

**Reimporting:**  
The beets documentation states:

> Just point the `beet import` command at a directory of files that are already catalogged in your library. Beets will automatically detect this situation and avoid duplicating any items. **In this situation, the “copy files” option ( `-c` / `-C` on the command line or `copy` in the config file) has slightly different behavior: it causes files to be _moved_ , rather than duplicated, if they’re already in your library**. (The same is true, of course, if `move` is enabled.) That is, your directory structure will be updated to reflect the new tags if copying is enabled; you never end up with two copies of the file.

Does this imply that rerunning

> beet import -A -C -p -q -l /home/x/beetsdb/beets.log /alib

is going to move my files?

**config.yaml vs beets command line:**

Which takes precedence? Will beets ever move files or write to them with:

> import:  
> copy: no  
> write: no

in config.yaml?

**Subsequently using autotagger:**  
Would running

> beet import -C -p -q -l /home/x/beetsdb/beets.log /alib

kick off beets’ autotagger and write the results to the database only?

**and Finally:**

Is there a way (other than perusing the log file) to identify albums that beets ignored because of the issued -q?

---

<div class="post-metadata">

### Author: ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)
#### Post date: [May 27, 2019, 7:17pm UTC](https://discourse.beets.io/t/beets-import-vs-reimport-and-command-line-vs-config-yaml/770/2 "2019-05-27T19:17:20Z")

</div>

> [@evand](#):
>
> Does this imply that rerunning
> 
> > beet import -A -C -p -q -l /home/x/beetsdb/beets.log /alib
> 
> is going to move my files?

No. It says that it would move your files if you have copying enabled. But you have disabled it with `-C` (and also in your config).

> [@evand](#):
>
> Which takes precedence? Will beets ever move files or write to them with:
> 
> > import:  
> > copy: no  
> > write: no
> 
> in config.yaml?

The command line takes precedence.

> [@evand](#):
>
> Would running
> 
> > beet import -C -p -q -l /home/x/beetsdb/beets.log /alib
> 
> kick off beets’ autotagger and write the results to the database only?

It seems so, with your configuration. But if I were you, I’d make a backup just to be safe.

> [@evand](#):
>
> Is there a way (other than perusing the log file) to identify albums that beets ignored because of the issued -q?

Nope—that’s exactly why we added the log file option, to cover this use case. The “normal” use case in this situation would be to move the files that get imported to another directory, so only the files that are left behind have been skipped. But if you don’t want that, the log file is the next best thing.
