Re: Backup Directory
Christopher <[email protected]> Sun, 8 Mar 2026 05:58:01 -0700 (PDT)
| Newsgroups | gmane.editors.vim |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_77412_124080514.1772974681538 Content-Type: multipart/alternative; boundary="----=_Part_77413_2139888338.1772974681538" ------=_Part_77413_2139888338.1772974681538 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It's possible I should be asking, how does it backup.In other words, must I= =20 start vim and write something and it will backup to the folder in this case= =20 ".backup" ? Or regardless what file it open, it will backup to this folder.= =20 Otherwise so it's clear if it's a permissions issue. Currently the=20 /etc/.backup directories both can read and write for the user.=20 On Saturday, March 7, 2026 at 10:28:21=E2=80=AFPM UTC-5 Riza Dindir wrote: > Hello Christopher, > > 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 problem.= I=20 > would use "set backupdir=3D/etc/.backup" (without the double quotes) in t= he=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... > > Regards > > On Sun, Mar 8, 2026 at 5:00=E2=80=AFAM Christopher <[email protected]= > wrote: > >> Why don't I see any backup files, no matter what file I work with ? >> >> On Saturday, March 7, 2026 at 12:49:30=E2=80=AFPM UTC-5 badli al rashid = wrote: >> >>> hi crestchristopher, >>> >>> try with your home folder.=20 >>> >>> Sent from Gmail >>> >>> On Sat, Mar 7, 2026, 20:45 Christopher <[email protected]> wrote: >>> >>>> I'm trying to setup a backup directory; "backupdir"=3D//etc/.backup=20 >>>> within my vimrc although; no file is being written to this directory ? >>>> >>>> --=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=20 >>>> Groups "vim_use" group. >>>> To unsubscribe from this group and stop receiving emails from it, send= =20 >>>> an email to [email protected]. >>>> To view this discussion visit=20 >>>> https://groups.google.com/d/msgid/vim_use/2d4c7c1e-9437-4c49-aca8-bf1f= 2dadb3c1n%40googlegroups.com=20 >>>> <https://groups.google.com/d/msgid/vim_use/2d4c7c1e-9437-4c49-aca8-bf1= f2dadb3c1n%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 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/c55613d7-5478-4cc6-8702-8fb47b= 0b70c2n%40googlegroups.com=20 >> <https://groups.google.com/d/msgid/vim_use/c55613d7-5478-4cc6-8702-8fb47= b0b70c2n%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/088= c8263-467c-45b2-974d-dc424c964a5fn%40googlegroups.com. ------=_Part_77413_2139888338.1772974681538 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It's possible I should be asking, how does it backup.In other words, must I= start vim and write something and it will backup to the folder in this cas= e ".backup" ? Or regardless what file it open, it will backup to this folde= r. Otherwise so it's clear if it's a permissions issue. Currently the /etc/= .backup directories both can read and write for the user.=C2=A0<br /><br />= <div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">On Saturd= ay, March 7, 2026 at 10:28:21=E2=80=AFPM UTC-5 Riza Dindir wrote:<br/></div= ><blockquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-lef= t: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir=3D"ltr"><div>= Hello Christopher,</div><div><br></div><div>As Eric Marceau pointed out, th= e double=C2=A0forward slash (//) in the path (<span>"backupdir"= =3D//etc/.backup)</span>=C2=A0might be a problem.</div><div><br></div><div>= Also the double quotes in "backupdir"=3D//etc/.backup might be a = problem. I would use "set backupdir=3D/etc/.backup" (without the = double quotes) in the ~/.vimrc file or wherever=C2=A0your rc file is. I hav= e something similar in my settings file: "set bakupdir=3D/tmp" (w= ithout the double quotes).</div><div><br></div><div>The other thing might b= e that you have to create the /etc/.backup directory, and you might need wr= ite permissions to that directory. It is odd to use the=C2=A0/etc directory= for this=C2=A0IMHO. It might be a good idea to move this to the home folde= r of your choosing (as Badli al Rashid has suggested). This can be somethin= g like ~/tmp/.backup or something else...</div><div><br></div><div>Regards<= /div></div><br><div class=3D"gmail_quote"></div><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Sun, Mar 8, 2026 at 5:00=E2=80=AFA= M Christopher <<a href data-email-masked rel=3D"nofollow">crestchr...@gm= ail.com</a>> wrote:<br></div></div><div class=3D"gmail_quote"><blockquot= e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s= olid rgb(204,204,204);padding-left:1ex">Why don't I see any backup file= s, no matter what file I work with ?<br><br><div class=3D"gmail_quote"><div= dir=3D"auto" class=3D"gmail_attr">On Saturday, March 7, 2026 at 12:49:30= =E2=80=AFPM UTC-5 badli al rashid wrote:<br></div><blockquote class=3D"gmai= l_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,20= 4,204);padding-left:1ex"><div dir=3D"auto"><div><div>hi crestchristopher,</= div><div dir=3D"auto"><br></div><div dir=3D"auto">try with your home folder= .=C2=A0</div><div><br></div><div>Sent from Gmail</div><br><div class=3D"gma= il_quote"></div></div></div><div dir=3D"auto"><div><div class=3D"gmail_quot= e"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Mar 7, 2026, 20:45 Christo= pher <<a rel=3D"nofollow">[email protected]</a>> wrote:<br></div>= </div></div></div><div dir=3D"auto"><div><div class=3D"gmail_quote"><blockq= uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p= x solid rgb(204,204,204);padding-left:1ex"><div>I'm trying to setup a b= ackup directory; "backupdir"=3D//etc/.backup within my vimrc alth= ough; no file is being written to this directory ?</div><div><br></div> <p></p></blockquote></div></div></div><div dir=3D"auto"><div><div class=3D"= gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px = 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> -- <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" rel= =3D"noreferrer nofollow" target=3D"_blank" data-saferedirecturl=3D"https://= www.google.com/url?hl=3Den&q=3Dhttp://www.vim.org/maillist.php&sour= ce=3Dgmail&ust=3D1773060398298000&usg=3DAOvVaw3CdfzeXOhj7ogCiPGQyfV= F">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" group.<br> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a rel=3D"noreferrer nofollow">[email protected]</a>.<b= r> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= vim_use/2d4c7c1e-9437-4c49-aca8-bf1f2dadb3c1n%40googlegroups.com?utm_medium= =3Demail&utm_source=3Dfooter" rel=3D"noreferrer nofollow" target=3D"_bl= ank" data-saferedirecturl=3D"https://www.google.com/url?hl=3Den&q=3Dhtt= ps://groups.google.com/d/msgid/vim_use/2d4c7c1e-9437-4c49-aca8-bf1f2dadb3c1= n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source= =3Dgmail&ust=3D1773060398298000&usg=3DAOvVaw26UgpqYH_FQFzyKQa7e1m9"= >https://groups.google.com/d/msgid/vim_use/2d4c7c1e-9437-4c49-aca8-bf1f2dad= b3c1n%40googlegroups.com</a>.<br> </blockquote></div></div></div> </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" tar= get=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.google.= com/url?hl=3Den&q=3Dhttp://www.vim.org/maillist.php&source=3Dgmail&= amp;ust=3D1773060398298000&usg=3DAOvVaw3CdfzeXOhj7ogCiPGQyfVF">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" 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/c55613d7-5478-4cc6-8702-8fb47b0b70c2n%40googlegroups.com?utm_medium= =3Demail&utm_source=3Dfooter" target=3D"_blank" rel=3D"nofollow" data-s= aferedirecturl=3D"https://www.google.com/url?hl=3Den&q=3Dhttps://groups= .google.com/d/msgid/vim_use/c55613d7-5478-4cc6-8702-8fb47b0b70c2n%2540googl= egroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=3Dgmail&= ;ust=3D1773060398298000&usg=3DAOvVaw2yBYwPi_EbTAT6KkIdjIg5">https://gro= ups.google.com/d/msgid/vim_use/c55613d7-5478-4cc6-8702-8fb47b0b70c2n%40goog= legroups.com</a>.<br> </blockquote></div> </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/088c8263-467c-45b2-974d-dc424c964a5fn%40googlegroups.com?utm_medium= =3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/vim_use/088= c8263-467c-45b2-974d-dc424c964a5fn%40googlegroups.com</a>.<br /> ------=_Part_77413_2139888338.1772974681538-- ------=_Part_77412_124080514.1772974681538--