• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Full backup

Scheduled Pinned Locked Moved
Duet Web Control wishlist
12
30
3.1k
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.
  • undefined
    DocTrucker @Phaedrux
    last edited by DocTrucker 17 May 2019, 05:02

    @phaedrux said in Full backup:

    I'm not sure, but I think part of the limitation with getting the DWC to do heavy file processing is the relatively weak CPU which is not suited to the task, plus the waiting for SD card reads and folder recursion.

    I didn't think the duet was doing much of the leg work with regards to the website. I thought that the web page files were served to the browsing computer then they ran on that computer, commumicating with the duet using gcode, ftp, and maybe telnet?

    Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

    undefined 1 Reply Last reply 17 May 2019, 05:59 Reply Quote 0
    • undefined
      Phaedrux Moderator @DocTrucker
      last edited by 17 May 2019, 05:59

      @doctrucker Right, but to packup the files into a zip file and send it to you has to be done by the Duet.

      Z-Bot CoreXY Build | Thingiverse Profile

      undefined 1 Reply Last reply 17 May 2019, 09:22 Reply Quote 0
      • undefined
        dc42 administrators @Phaedrux
        last edited by 17 May 2019, 09:22

        @phaedrux said in Full backup:

        @doctrucker Right, but to packup the files into a zip file and send it to you has to be done by the Duet.

        What happens with the existing backup of /sys and /macros is that DWC downloads each file individually and then zips them up.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        undefined undefined 2 Replies Last reply 17 May 2019, 12:38 Reply Quote 0
        • undefined
          DocTrucker @dc42
          last edited by DocTrucker 17 May 2019, 12:38

          @dc42 ...and the processing is done on the remote computer rather than the duet right?

          That's how I understood it anyway. All duet is doing is serving individual files to the remote computer.

          Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

          1 Reply Last reply Reply Quote 0
          • undefined
            Phaedrux Moderator @dc42
            last edited by 17 May 2019, 16:02

            @dc42 said in Full backup:

            @phaedrux said in Full backup:

            @doctrucker Right, but to packup the files into a zip file and send it to you has to be done by the Duet.

            What happens with the existing backup of /sys and /macros is that DWC downloads each file individually and then zips them up.

            Ah I see. In that case, would it be possible to download the entire contents of the card and zip it up in the same way?

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 0
            • undefined
              DocTrucker
              last edited by DocTrucker 17 May 2019, 16:15

              Possible, it's just a feature request for DWC as far as I can see.

              I agree it would be useful!

              Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

              1 Reply Last reply Reply Quote 0
              • undefined
                Danal
                last edited by 17 May 2019, 17:01

                Until this is implemented, going to the 3 places for gcode, system, and macros, then check all files and right click download zip, will be a yield a fairly complete protection of invested work.

                Delta / Kossel printer fanatic

                undefined 1 Reply Last reply 17 May 2019, 18:26 Reply Quote 0
                • ?
                  A Former User
                  last edited by 17 May 2019, 17:02

                  and /menu if using 12864 display.

                  I'll stick with wget, if it gets a http url to hit instead that gets all the files, great, but ftp will also work as is.

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    Danal
                    last edited by Danal 17 May 2019, 17:03

                    Also, just verified in github that DWC is pulling individual files from Duet, and zipping them on the browser (dwc) side. As everyone was saying above. Definitely works this way.

                    DWC is using a unique service call, namely "rr_download,name=", so that it can get text or binary or whatever and add them to the zip.

                    Therefore, implementing this is a matter of adding a button somewhere, adding code to 'walk' the entire directory tree of the SD, and the body of that code would be identical to what zips gcode or macros or whatever today. Absolutely no changes to Duet/RepRap firmware needed.

                    Easy for Chris, and/or if there is enough commentary, I could give it a shot, and do it so that Chris can later pull it on git.

                    Delta / Kossel printer fanatic

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      dc42 administrators @Danal
                      last edited by 17 May 2019, 18:26

                      @danal said in Full backup:

                      Until this is implemented, going to the 3 places for gcode, system, and macros, then check all files and right click download zip, will be a yield a fairly complete protection of invested work.

                      And Display if you are using a Duet Maestro.

                      Duet WiFi hardware designer and firmware engineer
                      Please do not ask me for Duet support via PM or email, use the forum
                      http://www.escher3d.com, https://miscsolutions.wordpress.com

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        XTL
                        last edited by 27 May 2019, 20:39

                        Recursive wget (and probably curl, automated browsers and many download managers) would also work great with http. Almost certainly better since the protocol is far more sane than ftp. All that would be required is some url with an html page with one link per file. Or one page per directory for a whole tree.

                        Something that looks like the view you get when opening a directory or a web server served directory. Especially if you leave out sort columns or parent directory links so they don't need to be filtered out from the spider.

                        undefined 1 Reply Last reply 27 May 2019, 20:59 Reply Quote 0
                        • undefined
                          resam @XTL
                          last edited by 27 May 2019, 20:59

                          @xtl FYI, I'm using this to backup my printer:
                          wget -r -nH ftp://username@myprinter.local/{macros,sys,www}

                          undefined undefined 2 Replies Last reply 28 May 2019, 17:44 Reply Quote 1
                          • undefined
                            XTL
                            last edited by 27 May 2019, 21:02

                            A recursive GET followed by a git add/commit would give you a pretty nice rolling history along with backups.

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              pawPrinter @resam
                              last edited by 28 May 2019, 17:44

                              @resam Many thanks for that tip. It has helped me a lot.

                              1 Reply Last reply Reply Quote 0
                              • wilrikerundefined
                                wilriker
                                last edited by wilriker 28 May 2019, 18:31

                                And to toss in one more solution: I wrote a small command line tool in Go to do exactly that. You can find it at https://github.com/wilriker/duetbackup. It works over the existing HTTP interface that is enabled by default (in contrast to FTP).

                                Right now there are no binary releases, i.e. you'd have to compile it yourself but on request I can very easily provide binaries for Windows, Linux (also for Raspberry Pi) and Mac.

                                Manuel
                                Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                                with probably always latest firmware/DWC (incl. betas or self-compiled)
                                My Tool Collection

                                undefined undefined 2 Replies Last reply 31 May 2019, 09:59 Reply Quote 4
                                • undefined
                                  Scachi @wilriker
                                  last edited by 31 May 2019, 09:59

                                  @wilriker your program works fine. Thank you 👍

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    Phaedrux Moderator @wilriker
                                    last edited by 31 May 2019, 17:07

                                    @wilriker A binary release would be great. I think many would use it.

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    wilrikerundefined 1 Reply Last reply 31 May 2019, 17:36 Reply Quote 1
                                    • wilrikerundefined
                                      wilriker @Phaedrux
                                      last edited by 31 May 2019, 17:36

                                      @phaedrux Will do as soon as I get to my PC. 🙂

                                      Manuel
                                      Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                                      with probably always latest firmware/DWC (incl. betas or self-compiled)
                                      My Tool Collection

                                      1 Reply Last reply Reply Quote 1
                                      • wilrikerundefined
                                        wilriker
                                        last edited by 31 May 2019, 18:12

                                        Here you go: I started a new thread for my little tool that also has the link to binary releases. 🙂

                                        Manuel
                                        Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                                        with probably always latest firmware/DWC (incl. betas or self-compiled)
                                        My Tool Collection

                                        1 Reply Last reply Reply Quote 1
                                        • undefined
                                          DonStauffer @A Former User
                                          last edited by 9 Jun 2021, 02:57

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA