LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to prevent backup file creation (kate & kwrite) (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-prevent-backup-file-creation-kate-and-kwrite-940857/)

Teufel 04-20-2012 10:36 AM

How to prevent backup file creation (kate & kwrite)
 
Hi gyus!
I got tired to delete a tons of backups that created with text editors (filename with ~ append).
How to disable this behavoir? I searched through editors settings: nothing found about...

Thanks in advance.

Tinkster 04-20-2012 04:14 PM

I did a quick google (I'm sure you did, too), and it appears that
there are no such settings for either program. Why don't you a)
use a more customisable editor, like e.g. vim, or b) just automate
the removal of the back-ups? Slap this in your crontab
Code:

0 */3 * * *  /bin/find /home/user -name \*~ -exec /bin/rm {} \;
(obviously replace "user" with your account name ;})



Cheers,
Tink

Teufel 04-20-2012 05:00 PM

Thanks for the reply!
Removing backups with script is the same way as deleting by hand.
I want to prevent backups creation.

And I thinking its possible: when I loading from liveUSB (Linux Mint 12 KDE), no backups created on files editing with kate or kwrite.

suicidaleggroll 04-20-2012 05:27 PM

What version of Kate? I just tried it with v3.4.5 and found the option to disable the automatic saving in about 15 seconds.

Settings > Configure Kate > Editor Component > Open/Save > Advanced
Uncheck the box next to local files under "Backup on Save"

I don't use Kate, so I don't know if it would be available on yours...maybe it's a new option you don't have, or an old option that has been removed.

Teufel 04-20-2012 11:27 PM

The same 3.4.5 here. Really it works with kate as well as with kwrite.
Its my mistake, can't discover this checkbox. May be a time to buy a glasses :)

Thanks a lot!


All times are GMT -5. The time now is 03:47 AM.