DEV Community

Gareth M.
Gareth M.

Posted on

Tuxsav - backup and save text files

TLDR: backs up text files during and after editing w/ Vim swap files. https://github.com/gbafana25/tuxsav

Intro

Hello, this project is still very much in the beginning stages, but the basic idea I had in mind is operational (Link is at the bottom).

Design

The repository consists of a Django web application and a C++ client. The Django application exposes endpoints that the client can use to create new documents and update existing ones.

On a the local machine, the C++ client must be started before opening a file. While the file is still open, it reads the Vim swap file and sends that data to the server. Once the file is closed, it reads the original file and sends its contents one final time. It currently only backups up one file at a time, which is specified in the command line arguments.

What's Left

I haven't done any styling on the website's frontend, and there are only the bare minimum amount of pages for it to function. I also potentially want the program to backup multiple files at once.

https://github.com/gbafana25/tuxsav

Top comments (0)