New Library: Backup Your Project on the Fly

Hi everyone!

I’d like to share a small library called SimpleBackup that allows you to back up your project on demand while your sketch is running.

If you’re like me, you enjoy sketching and messing around, exporting results, and thinking it’s all just a bit of fun. Days, weeks, or even years later, you recall creating something cool, but when you revisit that exported output, you realise you never saved the exact code that produced it. Now, you can’t remember how you did it, and reproducing it feels impossible.

That’s why I created this library. I’ve been using it for a while now, and I finally had some time to clean it up and share it. Hopefully, others will find it useful too.

How It Works

Using SimpleBackup is straightforward. Here’s the most basic example:

import ch.domizai.simplebackup.*;

SimpleBackup backup;

void setup() {
    // Specify what to copy. In this case, everything in the sketch directory
    backup = new SimpleBackup(this).copy("/");
}

void draw() {
}

void mouseClicked() {
    // This will copy everything to a new folder 'simplebackup'
    backup.backupNow();
}

Just remember to save your sketch before backing up!

Installation

The library is currently under review and isn’t available in the Processing Contribution Manager yet.
For now, you’ll need to install it manually. Download the ZIP and follow the instructions here:
:point_right: SimpleBackup Latest Release

Let me know if you have any questions or feedback! I’d love to hear if you find this useful or have ideas for improvements. Thanks!

3 Likes