ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Download and Delete from Source every 5 minutes (Ubuntu)

    IT Discussion
    5
    34
    8.4k
    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.
    • dafyreD
      dafyre
      last edited by

      NFS tends to work better between Linux boxes.

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @Sparkum
        last edited by

        @Sparkum said in Download and Delete from Source every 5 minutes (Ubuntu):

        @scottalanmiller

        Because thats what was suggested below, thats about it.

        And what should I use to mount between linux machines?

        Who suggested that? CIFS would be the worst option. Rsync the best. NFS in the middle.

        Only NFS between LInux machines. But we need to back up. Why are you mounting anything? Mounting sounds like the wrong approach here. Hence why I keep saying Rsync instead of mounting.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @dafyre
          last edited by

          @dafyre said in Download and Delete from Source every 5 minutes (Ubuntu):

          NFS tends to work better between Linux boxes.

          A LOT better...

          • Native libraries.
          • Faster
          • More stable
          • Must less to configure
          • No weird permissions mismatches
          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @Sparkum
            last edited by

            @Sparkum said in Download and Delete from Source every 5 minutes (Ubuntu):

            So mount my drives with fstab and then just a simple

            rsync --remove-source-files -options /path/to/src/ /path/to/dest

            This is where the error crept in. You added "mount my drives" as a step. Remove that. You ONLY Rsync, no mounting of drives at all.

            S 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              I don't see a post where anyone suggested mounting anything and especially no mention of CIFS. Maybe I am missing it.

              For future reference, CIFS or SMB as it is properly known, is the Windows Network File protocol. It has one and only one useful purpose - talking to Windows. This is because it is native to Windows and is the only protocol that Windows handles well, ever. Windows "can" do NFS, but you need an add on package and it is totally garbage.

              You only use SMB (CIFS) when you are trying to talk to Windows. If you are not talking to Windows, you avoid it entirely. NFS is generally the better protocol.

              S 1 Reply Last reply Reply Quote 0
              • S
                Sparkum @scottalanmiller
                last edited by

                @scottalanmiller

                Ooh ok gotcha,
                I assumed I mounted and then simply went from mnt/server to local kinda thing.

                Looking into NFS right now as well.

                Thanks

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • S
                  Sparkum @scottalanmiller
                  last edited by

                  @scottalanmiller

                  I've mounted to Windows a few times, so what I knew was CIFS, didnt know it was only meant for Windows, thanks for clearing that one up.

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @Sparkum
                    last edited by

                    @Sparkum said in Download and Delete from Source every 5 minutes (Ubuntu):

                    @scottalanmiller

                    Ooh ok gotcha,
                    I assumed I mounted and then simply went from mnt/server to local kinda thing.

                    Looking into NFS right now as well.

                    Thanks

                    No, don't look at NFS either. Use Rsync!!

                    Look at NFS for a future project where you need to mount things.

                    1 Reply Last reply Reply Quote 1
                    • scottalanmillerS
                      scottalanmiller @Sparkum
                      last edited by

                      @Sparkum said in Download and Delete from Source every 5 minutes (Ubuntu):

                      @scottalanmiller

                      I've mounted to Windows a few times, so what I knew was CIFS, didnt know it was only meant for Windows, thanks for clearing that one up.

                      SMB (CIFS) is recently the official protocol for Mac OSX too, replacing AFS which is what they used to use.

                      NFS is the official protocol for "all" UNIX systems (by convention) including all major Linux, FreeBSD, OpenBSD, NetBSD, Dragonfly, Solaris, HP-UX and AIX. People say "all UNIX" but Mac OSX is UNIX and uses SMB officially (but supports NFS just fine.) And there could be other exceptions. But all the UNIX Server OSes use NFS natively.

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

                        Hey look at that Rsync is working!

                        Thanks guys,

                        I'll let this sync the files then I'll will start looking into Cron jobs in the meantime

                        Thanks all!

                        scottalanmillerS 1 Reply Last reply Reply Quote 1
                        • scottalanmillerS
                          scottalanmiller @Sparkum
                          last edited by

                          @Sparkum said in Download and Delete from Source every 5 minutes (Ubuntu):

                          Hey look at that Rsync is working!

                          Thanks guys,

                          I'll let this sync the files then I'll will start looking into Cron jobs in the meantime

                          Thanks all!

                          Rsync is pretty awesome. Handles its own connections, its own security, does its own delta compresion.

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