Re: Backup Directory

Christopher <[email protected]> Sun, 8 Mar 2026 13:49:53 -0700 (PDT)
Newsgroups gmane.editors.vim
Message-ID <[email protected]>
------=_Part_257174_187364964.1773002993045
Content-Type: multipart/alternative; 
	boundary="----=_Part_257175_51962636.1773002993045"

------=_Part_257175_51962636.1773002993045
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

This is what it states in the documentation=20
<https://vimdoc.sourceforge.net/htmldoc/options.html#'backupdir'>

On Sunday, March 8, 2026 at 11:00:41=E2=80=AFAM UTC-4 Riza Dindir wrote:

> Please check your settings if you have enabled backups (and set the=20
> directory (backupdir) correctly. I am not sure, but you might set the=20
> permissions in the parent directories too.
>
> Please also read the help files (:help backup). You must set backup and=
=20
> writebackup settings according to your needs. There is a table in the hel=
p=20
> (:help backup) that will tell you how to set these two settings.
>
> Regards
>
> On Sun, Mar 8, 2026 at 4:00=E2=80=AFPM Christopher <[email protected]=
> wrote:
>
>> I understand the permissions issues. How should it backup to begin with,=
=20
>> as I mentioned to someone else. I've started Vim and decided to write an=
d=20
>> then saved with a file name. I then exited Vim and there was no file in =
the=20
>> .backup folder ?
>>
>> On Sunday, March 8, 2026 at 1:00:45=E2=80=AFAM UTC-5 jr wrote:
>>
>>> hi,=20
>>>
>>> On Sun, 8 Mar 2026 at 03:28, Riza Dindir <[email protected]> wrote:=20
>>> > As Eric Marceau pointed out, the double forward slash (//) in the pat=
h=20
>>> ("backupdir"=3D//etc/.backup) might be a problem.=20
>>> >=20
>>> > Also the double quotes in "backupdir"=3D//etc/.backup might be a=20
>>> problem. I would use "set backupdir=3D/etc/.backup" (without the double=
=20
>>> quotes) in the ~/.vimrc file or wherever your rc file is. I have someth=
ing=20
>>> similar in my settings file: "set bakupdir=3D/tmp" (without the double=
=20
>>> quotes).=20
>>> >=20
>>> > The other thing might be that you have to create the /etc/.backup=20
>>> directory, and you might need write permissions to that directory. It i=
s=20
>>> odd to use the /etc directory for this IMHO. It might be a good idea to=
=20
>>> move this to the home folder of your choosing (as Badli al Rashid has=
=20
>>> suggested). This can be something like ~/tmp/.backup or something else.=
..=20
>>>
>>> just to add, conventionally '/etc' is a system directory and a=20
>>> non-root user would be permitted to read, not write.=20
>>>
>>> --=20
>>> regards, jr.=20
>>>
>>> You have the right to free speech, as long as you're not dumb enough=20
>>> to actually try it.=20
>>> (The Clash 'Know Your Rights')=20
>>>
>>> this email is intended only for the addressee(s) and may contain=20
>>> confidential information. if you are not the intended recipient, you=20
>>> are hereby notified that any use of this email, its dissemination,=20
>>> distribution, and/or copying without prior written consent is=20
>>> prohibited.=20
>>>
>> --=20
>>
> --=20
>> You received this message from the "vim_use" maillist.
>> Do not top-post! Type your reply below the text you are replying to.
>> For more information, visit http://www.vim.org/maillist.php
>>
>> ---=20
>> You received this message because you are subscribed to the Google Group=
s=20
>> "vim_use" group.
>> To unsubscribe from this group and stop receiving emails from it, send a=
n=20
>> email to [email protected].
>>
> To view this discussion visit=20
>> https://groups.google.com/d/msgid/vim_use/3000797f-110a-4b7f-a17f-d4d1d8=
fcbcf2n%40googlegroups.com=20
>> <https://groups.google.com/d/msgid/vim_use/3000797f-110a-4b7f-a17f-d4d1d=
8fcbcf2n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter>
>> .
>>
>

--=20
--=20
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---=20
You received this message because you are subscribed to the Google Groups "=
vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_use/c5d=
8ba2f-d133-46f9-9d85-40ade78e7d71n%40googlegroups.com.

------=_Part_257175_51962636.1773002993045
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div>This is what it states in the <a href=3D"https://vimdoc.sourceforge.ne=
t/htmldoc/options.html#'backupdir'">documentation</a></div><br /><div class=
=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">On Sunday, March 8,=
 2026 at 11:00:41=E2=80=AFAM UTC-4 Riza Dindir wrote:<br/></div><blockquote=
 class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px solid=
 rgb(204, 204, 204); padding-left: 1ex;"><div dir=3D"ltr"><div>Please check=
 your settings if you have enabled backups (and set the directory (backupdi=
r) correctly. I am not sure, but you might set the permissions in the paren=
t directories too.</div><div><br></div><div>Please also read the help files=
 (:help backup). You must set backup and writebackup=C2=A0settings accordin=
g to your needs. There is a table in the help (:help backup) that will tell=
 you how to set these two settings.</div><div><br></div><div>Regards</div><=
/div><br><div class=3D"gmail_quote"></div><div class=3D"gmail_quote"><div d=
ir=3D"ltr" class=3D"gmail_attr">On Sun, Mar 8, 2026 at 4:00=E2=80=AFPM Chri=
stopher &lt;<a href data-email-masked rel=3D"nofollow">[email protected]=
m</a>&gt; wrote:<br></div></div><div class=3D"gmail_quote"><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r=
gb(204,204,204);padding-left:1ex">I understand the permissions issues. How =
should it backup to begin with, as I mentioned to someone else. I&#39;ve st=
arted Vim and decided to write and then saved with a file name. I then exit=
ed Vim and there was no file in the .backup folder ?<br><br><div class=3D"g=
mail_quote"><div dir=3D"auto" class=3D"gmail_attr">On Sunday, March 8, 2026=
 at 1:00:45=E2=80=AFAM UTC-5 jr wrote:<br></div><blockquote class=3D"gmail_=
quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,=
204);padding-left:1ex">hi,
<br>
<br>On Sun, 8 Mar 2026 at 03:28, Riza Dindir &lt;<a rel=3D"nofollow">riza..=
[email protected]</a>&gt; wrote:
<br>&gt; As Eric Marceau pointed out, the double forward slash (//) in the =
path (&quot;backupdir&quot;=3D//etc/.backup) might be a problem.
<br>&gt;
<br>&gt; Also the double quotes in &quot;backupdir&quot;=3D//etc/.backup mi=
ght be a problem. I would use &quot;set backupdir=3D/etc/.backup&quot; (wit=
hout the double quotes) in the ~/.vimrc file or wherever your rc file is. I=
 have something similar in my settings file: &quot;set bakupdir=3D/tmp&quot=
; (without the double quotes).
<br>&gt;
<br>&gt; The other thing might be that you have to create the /etc/.backup =
directory, and you might need write permissions to that directory. It is od=
d to use the /etc directory for this IMHO. It might be a good idea to move =
this to the home folder of your choosing (as Badli al Rashid has suggested)=
. This can be something like ~/tmp/.backup or something else...
<br>
<br>just to add, conventionally &#39;/etc&#39; is a system directory and a
<br>non-root user would be permitted to read, not write.
<br>
<br>--=20
<br>regards, jr.
<br>
<br>You have the right to free speech, as long as you&#39;re not dumb enoug=
h
<br>to actually try it.
<br>(The Clash &#39;Know Your Rights&#39;)
<br>
<br>this email is intended only for the addressee(s) and may contain
<br>confidential information. if you are not the intended recipient, you
<br>are hereby notified that any use of this email, its dissemination,
<br>distribution, and/or copying without prior written consent is
<br>prohibited.
<br></blockquote></div>

<p></p></blockquote></div><div class=3D"gmail_quote"><blockquote class=3D"g=
mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex">

-- <br></blockquote></div><div class=3D"gmail_quote"><blockquote class=3D"g=
mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex">
-- <br>
You received this message from the &quot;vim_use&quot; maillist.<br>
Do not top-post! Type your reply below the text you are replying to.<br>
For more information, visit <a href=3D"http://www.vim.org/maillist.php" tar=
get=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.google.=
com/url?hl=3Den&amp;q=3Dhttp://www.vim.org/maillist.php&amp;source=3Dgmail&=
amp;ust=3D1773089292791000&amp;usg=3DAOvVaw07iCR7szG57-XFCSVHlGzv">http://w=
ww.vim.org/maillist.php</a><br>
<br>
--- <br>
You received this message because you are subscribed to the Google Groups &=
quot;vim_use&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href data-email-masked rel=3D"nofollow">vim_use+u...@googlegroup=
s.com</a>.<br></blockquote></div><div class=3D"gmail_quote"><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex">
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
vim_use/3000797f-110a-4b7f-a17f-d4d1d8fcbcf2n%40googlegroups.com?utm_medium=
=3Demail&amp;utm_source=3Dfooter" target=3D"_blank" rel=3D"nofollow" data-s=
aferedirecturl=3D"https://www.google.com/url?hl=3Den&amp;q=3Dhttps://groups=
.google.com/d/msgid/vim_use/3000797f-110a-4b7f-a17f-d4d1d8fcbcf2n%2540googl=
egroups.com?utm_medium%3Demail%26utm_source%3Dfooter&amp;source=3Dgmail&amp=
;ust=3D1773089292791000&amp;usg=3DAOvVaw3u8OTJ1lkwS-8zsJItImgB">https://gro=
ups.google.com/d/msgid/vim_use/3000797f-110a-4b7f-a17f-d4d1d8fcbcf2n%40goog=
legroups.com</a>.<br>
</blockquote></div>
</blockquote></div>

<p></p>

-- <br />
-- <br />
You received this message from the &quot;vim_use&quot; maillist.<br />
Do not top-post! Type your reply below the text you are replying to.<br />
For more information, visit <a href=3D"http://www.vim.org/maillist.php">htt=
p://www.vim.org/maillist.php</a><br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;vim_use&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">vim_use+uns=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
vim_use/c5d8ba2f-d133-46f9-9d85-40ade78e7d71n%40googlegroups.com?utm_medium=
=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/vim_use/c5d=
8ba2f-d133-46f9-9d85-40ade78e7d71n%40googlegroups.com</a>.<br />

------=_Part_257175_51962636.1773002993045--

------=_Part_257174_187364964.1773002993045--