Backup entire server

Going to begin archiving all my 3D printing projects on my Repetierserver.

What is the best method for backing up  the entire server?

I would like to either in order of preference:
1. Backup the entire server as a disk image to another location on the LAN without shutting down the server or;
2. Backup the files and settings into a single file to another location on the LAN that can be restored to a fresh installation of Repetier server.

This would ideally be done by SSH or through a script I can execute from within Repetier server.

Obviously I could shutdown the server and remove the SD card for cloning but I'd rather not have to go to this trouble to ensure backups are performed regularly due to ease of being able to do so.

Comments

  • For easy backup all user files are stored in /var/lib/Repetier-Server. Stop server
    sudo service RepetierServer stop
    and copy all files or make a tar file from it if you have enough space to store the file and copy the tar file instead.

    If you have made more modifications then just in the ui like adding extra drivers a full image is also an option. But with the data backup you can at least reinstall all server related settings and data.
  • Great thanks
  • would it be possible to create a script launched from within Repetier menu that would stop the server archive the user files copy them to a location on the network then start the server again?
  • Good question. If you manage to detach the process from server it could work otherwise killing server would stop the script as well or wait for script to finish. See advanced configuration how to add external commands using extcommands.xml - They are already on our pi images to shutdown and reboot.
  • Hello! It works for me to copy the files from the raspberry to the PC using WinSCP. But when I try to restore the files (copy it back to the raspberry) I got the message "Permission denied". I have stopped the server before trying it. What is my fault? Is it correct to login with the default user (pi/raspberry)?
    I want to setup a new server with an RPi3 and want to copy all files and folder structure from the old one to the new one.
    Thanks in advance for your help.
  • The problem is that server runs as user repetierserver who also owns /var/lib/Repetier-Server so pi can not upload to that. But on start server will always fix permissions so running on shell
    sudo chown -R pi /var/lib/Repetier-Server
    after stopping server should give you permission to copy data back.
Sign In or Register to comment.