# Comment line in config-file?

**URL:** <https://forum.rclone.org/t/comment-line-in-config-file/12088>\
**Category:** Help and Support\
**Created:** [September 29, 2019, 2:36am UTC](https://forum.rclone.org/t/comment-line-in-config-file/12088 "2019-09-29T02:36:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thestigma](https://forum.rclone.org/user_avatar/forum.rclone.org/thestigma/32/3414_2.png) [@thestigma](https://forum.rclone.org/u/thestigma)\
**Post date:** [September 29, 2019, 2:36am UTC](https://forum.rclone.org/t/comment-line-in-config-file/12088/1 "2019-09-29T02:36:42Z")

</div>

Hey all,

Just a quick question:  
Is there a form of comment-line that is safe to use in the rclone config-file?  
One that is both ignored by the parser and won't be moved around?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [September 29, 2019, 9:00am UTC](https://forum.rclone.org/t/comment-line-in-config-file/12088/2 "2019-09-29T09:00:55Z")

</div>

`# comment` is ignored by the parser at the start of line. I think it will stay in the same position when the config file is loaded and saved by rclone if you put it within a `[backend]` stanza.

---

<div class="post-metadata">

**Author:** ![thestigma](https://forum.rclone.org/user_avatar/forum.rclone.org/thestigma/32/3414_2.png) [@thestigma](https://forum.rclone.org/u/thestigma)\
**Post date:** [September 29, 2019, 9:36pm UTC](https://forum.rclone.org/t/comment-line-in-config-file/12088/3 "2019-09-29T21:36:46Z")

</div>

> [@ncw](#):
>
> if you put it within a `[backend]` stanza.

Thanks!  
Just to clarify, do you mean:

* * *

[dummyname]  
#Comments go here

* * *

or  
[#Comments go here]

* * *

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [September 30, 2019, 9:59am UTC](https://forum.rclone.org/t/comment-line-in-config-file/12088/4 "2019-09-30T09:59:36Z")

</div>

> [@thestigma](#):
>
> [dummyname]  
> #Comments go here

This one 🙂

---

<div class="post-metadata">

**Author:** ![thestigma](https://forum.rclone.org/user_avatar/forum.rclone.org/thestigma/32/3414_2.png) [@thestigma](https://forum.rclone.org/u/thestigma)\
**Post date:** [September 30, 2019, 10:37am UTC](https://forum.rclone.org/t/comment-line-in-config-file/12088/5 "2019-09-30T10:37:11Z")

</div>

Thanks! Seems to work well.

But that definition basically applies to all lines in the config except for above the first remote then (which is great) 😃

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [September 30, 2019, 2:51pm UTC](https://forum.rclone.org/t/comment-line-in-config-file/12088/6 "2019-09-30T14:51:17Z")

</div>

The config parser is reasonable about keeping comments, but I seem to remmember it does sometimes move them about...

I haven't done a proper test recently though, but I have comments in `[backend]` definitions which have been there forever!

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [October 3, 2019, 2:51pm UTC](https://forum.rclone.org/t/comment-line-in-config-file/12088/7 "2019-10-03T14:51:18Z")

</div>

Closed on October 3, 2019, 2:51pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
