Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    SBC Raspberry Pi Backup Configs

    General Discussion
    2
    3
    87
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dbruce.ae05
      dbruce.ae05 last edited by

      Is there a documentation page that describes how the Raspberry Pi communicates with the Duet3?

      I would like to backup the configuration files using rsync on the Raspberry Pi to another computer on my network so I don't lose the configuration files. I'm making a lot of changes getting my CNC setup, and I'd like to have a history of changes.

      1 Reply Last reply Reply Quote 0
      • Phaedrux
        Phaedrux Moderator last edited by

        What specifically are you wanting to backup? the configuration? The virtual SD card can be found at /opt/dsf/sd

        https://duet3d.dozuki.com/Wiki/Getting_Started_With_Duet_3#Section_Duet_Software_Framework_on_Raspberry_Pi

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • dbruce.ae05
          dbruce.ae05 last edited by dbruce.ae05

          Thanks @Phaedrux! that's just what I needed. I created a cronjob to run the following script every hour while I'm trying to get things running.

          now=`date +'%F_%H.%M.%S'`
          host_address="username@host"
          filename="[backup file pathway]/$now/"
          
          #echo $now
          #echo $host_address
          #echo $filename
          
          ssh $host_address mkdir -p $filename
          
          rsync -av /opt/dsf/sd/sys $host_address:$filename
          rsync -av /opt/dsf/sd/macros $host_address:$filename
          

          The script above requires automatic ssh login, a good link to set that up is here: http://www.linuxproblem.org/art_9.html

          Cron:

          # m h  dom mon dow   command
          0 * * * * bash /home/pi/Documents/backup-duet3.sh
          
          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA