Re: Backup Directory
Christopher <[email protected]> Sun, 8 Mar 2026 05:59:57 -0700 (PDT)
| Newsgroups | gmane.editors.vim |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_100532_1691128444.1772974797140 Content-Type: multipart/alternative; boundary="----=_Part_100533_905229316.1772974797140" ------=_Part_100533_905229316.1772974797140 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I understand the permissions issues. How should it backup to begin with, as= =20 I mentioned to someone else. I've started Vim and decided to write and then= =20 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, > > 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= =20 > ("backupdir"=3D//etc/.backup) might be a problem. > > > > Also the double quotes in "backupdir"=3D//etc/.backup might be a proble= m.=20 > I would use "set backupdir=3D/etc/.backup" (without the double quotes) in= the=20 > ~/.vimrc file or wherever your rc file is. I have something similar in my= =20 > settings file: "set bakupdir=3D/tmp" (without the double quotes). > > > > 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 is= =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... > > just to add, conventionally '/etc' is a system directory and a > non-root user would be permitted to read, not write. > > --=20 > 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. > --=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/300= 0797f-110a-4b7f-a17f-d4d1d8fcbcf2n%40googlegroups.com. ------=_Part_100533_905229316.1772974797140 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 the= n saved with a file name. I then exited Vim and there was no file in the .b= ackup folder ?<br /><br /><div class=3D"gmail_quote"><div dir=3D"auto" clas= s=3D"gmail_attr">On Sunday, March 8, 2026 at 1:00:45=E2=80=AFAM UTC-5 jr wr= ote:<br/></div><blockquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8= ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">hi, <br> <br>On Sun, 8 Mar 2026 at 03:28, Riza Dindir <<a href data-email-masked = rel=3D"nofollow">[email protected]</a>> wrote: <br>> As Eric Marceau pointed out, the double forward slash (//) in the = path ("backupdir"=3D//etc/.backup) might be a problem. <br>> <br>> Also the double quotes in "backupdir"=3D//etc/.backup mi= ght be a problem. I would use "set backupdir=3D/etc/.backup" (wit= hout the double quotes) in the ~/.vimrc file or wherever your rc file is. I= have something similar in my settings file: "set bakupdir=3D/tmp"= ; (without the double quotes). <br>> <br>> 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 '/etc' 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're not dumb enoug= h <br>to actually try it. <br>(The Clash 'Know Your Rights') <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 "vim_use" 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" 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/3000797f-110a-4b7f-a17f-d4d1d8fcbcf2n%40googlegroups.com?utm_medium= =3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/vim_use/300= 0797f-110a-4b7f-a17f-d4d1d8fcbcf2n%40googlegroups.com</a>.<br /> ------=_Part_100533_905229316.1772974797140-- ------=_Part_100532_1691128444.1772974797140--