• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Cron pattern to copy over a USB drive

    How-To
    3
    24
    9.2k
    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.
    • S
      sky_watcher @phildunlap
      last edited by

      @phildunlap I get same error in mango and the drive is formatted as ext4, is mounted and the mango user has wrights to write on the usb0 folder.

      0_1567105280887_format_type.jpg

      1 Reply Last reply Reply Quote 0
      • MattFoxM
        MattFox
        last edited by

        Hi guys, just gonna give a suggestion, cd into /media/usb0/
        then do the chown again

        sudo chown mango:mango . -R
        

        then enter the

        ls -la
        

        That should give us all info for that directory to start. Skywatcher, assuming you are using putty if you highlight the text, you can then paste into here with code tags.

        You should be able to create a file just with touch file
        no sudo required

        Do not follow where the path may lead; go instead where there is no path.
        And leave a trail - Muriel Strode

        S 1 Reply Last reply Reply Quote 0
        • phildunlapP
          phildunlap
          last edited by

          Also ensure the mango user has at least read permissions to /media

          1 Reply Last reply Reply Quote 0
          • S
            sky_watcher @MattFox
            last edited by phildunlap

            @mattfox said in Cron pattern to copy over a USB drive:

            total 24
            drwxr-xr-x  3 mango mango  4096 Aug 29 14:54 .
            drwxr-xr-x 12 root  root   4096 Aug 29 11:45 ..
            drwx------  2 mango mango 16384 Aug 29 14:54 lost+found
            root@mangoES3324:/media/usb0$touch file
            root@mangoES3324:/media/usb0$la -ls
            total 16
             0 -rw-r--r-- 1 root  root      0 Aug 29 15:22 file
            16 drwx------ 2 mango mango 16384 Aug 29 14:54 lost+found
            
            1 Reply Last reply Reply Quote 0
            • MattFoxM
              MattFox
              last edited by MattFox

              You're logged in as root, you need to be the mango user if you want to test effectively, also please use those code tags, it makes a lot easier to read.

              Edit: Thanks!
              Ok dir permissions look good. Try doing the touch newfile as mango, if you can do that, there should be no issues with mango creating files. I'll check my server for you soon if wanted to compare configs.

              Fox

              Do not follow where the path may lead; go instead where there is no path.
              And leave a trail - Muriel Strode

              S 1 Reply Last reply Reply Quote 0
              • S
                sky_watcher @MattFox
                last edited by

                @mattfox

                mango@mangoES3324:/media/usb0$ls
                file  lost+found
                mango@mangoES3324:/media/usb0$touch newfile
                mango@mangoES3324:/media/usb0$ls
                file  lost+found  newfile
                mango@mangoES3324:/media/usb0$ls -la
                total 24
                drwxr-xr-x  3 mango mango  4096 Aug 29 15:43 .
                drwxr-xr-x 12 root  root   4096 Aug 29 11:45 ..
                -rw-r--r--  1 root  root      0 Aug 29 15:22 file
                drwx------  2 mango mango 16384 Aug 29 14:54 lost+found
                -rw-r--r--  1 mango mango     0 Aug 29 15:43 newfile
                
                1 Reply Last reply Reply Quote 0
                • MattFoxM
                  MattFox
                  last edited by

                  Perfect, try doing backups now with mango

                  Do not follow where the path may lead; go instead where there is no path.
                  And leave a trail - Muriel Strode

                  1 Reply Last reply Reply Quote 0
                  • S
                    sky_watcher
                    last edited by

                    ok, now worked, I can use that path and my back-up was saved there.

                    Also I have a question, this feature of writing directly the location of the USB drive into the Backup Directory works only in V3? In V2.8 is it working or not?

                    1 Reply Last reply Reply Quote 0
                    • MattFoxM
                      MattFox
                      last edited by MattFox

                      @sky_watcher said in Cron pattern to copy over a USB drive:

                      ok, now worked, I can use that path and my back-up was saved there.

                      Nicely Done!

                      @sky_watcher said in Cron pattern to copy over a USB drive:

                      lso I have a question, this feature of writing directly the location of the USB drive into the Backup Directory works only in V3? In V2.8 is it working or not?

                      It'll work in both instances as long as your directory permissions are set correctly. Under the hood mango V2 and V3 are still running java, V3 just has a new shiny interface.

                      Do not follow where the path may lead; go instead where there is no path.
                      And leave a trail - Muriel Strode

                      1 Reply Last reply Reply Quote 0
                      • S
                        sky_watcher
                        last edited by

                        ok, Thank you a lot!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post