Backup via the console/ssh
My repetierServer runs on a pi4 with SSD. So far so good. Now I want to take care of the backup issue, the gcode, logs etc.
There is an extra program for this, I find that cumbersome, I would like to just backup to a mounted directory.
So in the worst case I set up a new image, activate it with my license and restore directory XYZ to the new server and I have the original state.
Is that how it works? If so, which directory do I need to backup?
If you make it your self best make a script like
sudo service RepetierServer stop
tar -czf backuptarget.tgz /var/lib/Repetier-Server
sudo service RepetierServer start
Just note it will stop all runnign prints, so best call manually when all are idle. Don't make it a menu entry with external call either since shuting down server would kill server plus your script when it is started. You could do it with a trick only creating a file and in cron job you check if file exist and call it then so it is not running of the server.
describes the function i mean. If a job entry is not "none" it is printing. If you have unix socket enabled you can query without apikey locally.