Skip to content

SSH into Octoprint Machine, create backup, sends to local directory of your choosing

Notifications You must be signed in to change notification settings

sicXnull/octoprint-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Octoprint Backup

SSH into Octoprint Machine, creates backup & sends to local directory of your choosing. Easy to run via cronjob weekly/monthly/etc

Deployment

To deploy this project modify the following:

ssh_host = "your_destination_machine_ip"
ssh_port = 22
ssh_username = "your_username"
private_key_path = "/path/to/your/private/key"
remote_backup_command = "/home/pi/oprint/bin/octoprint plugins backup:backup"
remote_backup_dir = "/root/.octoprint/data/backup/"
local_destination_dir = "/path/to/local/destination/dir/"
backup_limit = 7  # maximum number of backups to keep

After completing, run the script

python3 octoprint.py

Cronjob example - Sundays @ 12:05pm

5 12 * * 0 python3 /opt/scripts/octoprint.py

About

SSH into Octoprint Machine, create backup, sends to local directory of your choosing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages