[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: backintime



On Wednesday 16 January 2019 14:17:04 Dan Ritter wrote:

> Gene Heskett wrote:
> > On Wednesday 16 January 2019 11:59:39 Gene Heskett wrote:
> >
> > Anybody else have a suggestion for a live backup for working on a
> > 600 line file?
>
> How live do you need it to be?
>
> Option 1: totally manual. If there's only one or a few files,
> this works well.
>
> $ cp foobar.txt foobar.txt.20190116; edit foobar.txt
But is a load of typu inducing typing, needs to be a script, one simple 
name, saveit maybe
>
> Option 2: version control system.
>
>   Setup:
>     git init
>     git add foobar.txt
>
>   Working:
>     edit foobar.txt
>     git commit foobar.txt -m "drew a new line"
>
>   Review:
>     git status foobar.txt
>     git log foobar.txt
>
git work nice, until you want to save..

> Option 3: you already use vim, right?
>     https://github.com/thaerkh/vim-workspace
>
> Option 4: you already use emacs, right?
>     https://www.emacswiki.org/emacs/AutoSave
>
> Option 5: you like using gedit, right?
>     preferences => editor  ; turn on autosave, specify the
>     period
>
> Option 6: you like using geany, right?
>     https://www.geany.org/manual/current/index.html#id232

I don't have any save-as options, just a save-as I can rename. I'd much 
druther it timestamped the version loaded, but saved the regular to the 
original nane. I missing a plugin?
>
>
> This is not an exclusive list.
>
> -dsr-


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>


Reply to: