Skip to content

3DCoded/SlicerBackUp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlicerBackUp

Why?

I semi-regularly wipe my computer to keep it running smoothly. However, I usually forget to backup my slicer profiles before doing so. This utility automatically backups your slicer profiles to a GitHub repository, similar to Klipper-Backup.

Installation

Note

This was written out of necessity and not originally intended to be a public project, so don't exactly expect 3MS-level documentation...

  1. Install Python
  2. Install Pipenv
  3. Clone this repository
  4. Run pipenv install to install dependencies

Configuration

Create a file env.txt in the same directory as main.py. Example contents:

# Determine config dir by going into slicer -> help -> show config folder -> user -> default -> copy path including "default" at the end
SLICERBACKUP_CONFIG_DIR='<SLICER PATH HERE>'
# GitHub repo to backup to
SLICERBACKUP_REPO_URL='<GITHUB REPO HERE>'

Ensure your Github access token is authenticated globally on your computer.

Testing

Run in your terminal, in the repo directory:

pipenv run python main.py

If nothing is output, success! Check the repo you configured to be sure.

Usage

In your slicer's post processing scripts section (for your most common profiles), add a line in the below format:

'<PYTHON INTERPRETER PATH>' '<SlicerBackUp main.py PATH>'

Now, whenever you export G-code or upload directly from the slicer, the repo will automatically be updated.

About

Automatically back up your slicer profiles to Github

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages