Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backup! enhancement request / proposal #631

Open
newbie-02 opened this issue Mar 31, 2024 · 3 comments
Open

backup! enhancement request / proposal #631

newbie-02 opened this issue Mar 31, 2024 · 3 comments

Comments

@newbie-02
Copy link

I didn't find anything about backupping in AsciidocFX than requesting it at 'AsciidocFx 1.5.6 truncated my adoc file # 334'.
I managed to loose some data when something hit my keyboard and typed endless '+++++++++++++++++++++++++++++++++++++++++...', and can think of plenty situations where e.g. accidentally marking an area and deleting when typing together with AsciidocFX's 'auto save on leaving window' could cause harmful and - AFAIK - unrecoverable data loss.

Proposal: automatically create backup files on every write, mark them with date and time, and always keep one from the last 15 minutes, up to three for every last hour, up to three for every last day, ( up to three for every last week, up to three for every last month. ) Make it optional and on by default.

@newbie-02
Copy link
Author

just to underline importance ... had month of work without problems ...
and today: a 400k adoc file showed up empty, on disk 0 bytes. Can't say what's
the root, complexity?, encrypted drive? can say that I was lucky that I did a backup
yesterday, but 12 hrs are lost. :-( Think I'd been much happier if AsciidocFX had
simply copied the file to xxxxx.adoc_bak_[date_time] on start ... better algos welcome.

@rahmanusta
Copy link
Member

Thanks for the feature request. For more features it requires more sponsors https://opencollective.com/asciidocfx

@newbie-02
Copy link
Author

while nothing better available a short batch as a crutch:

stay sure not to have the names in the batch as files or directories around,

rm -r adoc_backup_07  
mv adoc_backup_06 adoc_backup_07 
mv adoc_backup_05 adoc_backup_06 
mv adoc_backup_04 adoc_backup_05 
mv adoc_backup_03 adoc_backup_04 
mv adoc_backup_02 adoc_backup_03 
mv adoc_backup_01 adoc_backup_02 
mkdir adoc_backup_01 
cp -p *.adoc adoc_backup_01 

will keep you 7 steps backup of all *.adoc files in that directory,
call once a day or after heavy work ...

own risk, no warranty of any kind!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants