Re: Backup Directory

Riza Dindir <[email protected]> Sun, 8 Mar 2026 18:03:55 +0300
Newsgroups gmane.editors.vim
Message-ID <CA+ek4BExDdLooUm9nCR3zmzVxwQF8p8+BTC2dEs7fDCj=btuYw@mail.gmail.com>
--0000000000008b1816064c848b1a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Please check your settings if you have enabled backups (and set the
directory (backupdir) correctly. I am not sure, but you might set the
permissions in the parent directories too.

Please also read the help files (:help backup). You must set backup and
writebackup settings according to your needs. There is a table in the help
(: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 <crestchristopher@gmail.=
com>
wrote:

> I understand the permissions issues. How should it backup to begin with,
> as I mentioned to someone else. I've started Vim and decided to write and
> then saved with a file name. I then exited Vim and there was no file in t=
he
> .backup folder ?
>
> On Sunday, March 8, 2026 at 1:00:45=E2=80=AFAM UTC-5 jr wrote:
>
>> hi,
>>
>> On Sun, 8 Mar 2026 at 03:28, Riza Dindir <[email protected]> wrote:
>> > As Eric Marceau pointed out, the double forward slash (//) in the path
>> ("backupdir"=3D//etc/.backup) might be a problem.
>> >
>> > Also the double quotes in "backupdir"=3D//etc/.backup might be a probl=
em.
>> I would use "set backupdir=3D/etc/.backup" (without the double quotes) i=
n the
>> ~/.vimrc file or wherever your rc file is. I have something similar in m=
y
>> settings file: "set bakupdir=3D/tmp" (without the double quotes).
>> >
>> > 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
>> odd 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..=
.
>>
>> just to add, conventionally '/etc' is a system directory and a
>> non-root user would be permitted to read, not write.
>>
>> --
>> regards, jr.
>>
>> You have the right to free speech, as long as you're not dumb enough
>> to actually try it.
>> (The Clash 'Know Your Rights')
>>
>> this email is intended only for the addressee(s) and may contain
>> confidential information. if you are not the intended recipient, you
>> are hereby notified that any use of this email, its dissemination,
>> distribution, and/or copying without prior written consent is
>> prohibited.
>>
> --
> --
> 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
>
> ---
> 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
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/vim_use/3000797f-110a-4b7f-a17f-d4d1d8f=
cbcf2n%40googlegroups.com
> <https://groups.google.com/d/msgid/vim_use/3000797f-110a-4b7f-a17f-d4d1d8=
fcbcf2n%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/CA%=
2Bek4BExDdLooUm9nCR3zmzVxwQF8p8%2BBTC2dEs7fDCj%3DbtuYw%40mail.gmail.com.

--0000000000008b1816064c848b1a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Please check your settings if you have enabled backup=
s (and set the directory (backupdir) correctly. I am not sure, but you migh=
t set the permissions in the parent directories too.</div><div><br></div><d=
iv>Please also read the help files (:help backup). You must set backup and =
writebackup=C2=A0settings according 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 gmail_=
quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Mar 8, 2026 =
at 4:00=E2=80=AFPM Christopher &lt;<a href=3D"mailto:crestchristopher@gmail=
.com">[email protected]</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">I understand the permissions issues. How s=
hould it backup to begin with, as I mentioned to someone else. I&#39;ve sta=
rted Vim and decided to write and then saved with a file name. I then exite=
d Vim and there was no file in the .backup folder ?<br><br><div class=3D"gm=
ail_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_q=
uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,2=
04);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>

-- <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" tar=
get=3D"_blank">http://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]" target=3D"_=
blank">[email protected]</a>.<br>
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">https://groups.google.c=
om/d/msgid/vim_use/3000797f-110a-4b7f-a17f-d4d1d8fcbcf2n%40googlegroups.com=
</a>.<br>
</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/CA%2Bek4BExDdLooUm9nCR3zmzVxwQF8p8%2BBTC2dEs7fDCj%3DbtuYw%40mail.gm=
ail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d=
/msgid/vim_use/CA%2Bek4BExDdLooUm9nCR3zmzVxwQF8p8%2BBTC2dEs7fDCj%3DbtuYw%40=
mail.gmail.com</a>.<br />

--0000000000008b1816064c848b1a--