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

    NFS Target Scheduled Backup to USB connected to Windows

    IT Discussion
    nfs backup export xen orchestra scheduled tasks windows usb shared centos delta backup
    5
    15
    3.3k
    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.
    • DustinB3403D
      DustinB3403 @dafyre
      last edited by

      @dafyre said:

      @DustinB3403 said:

      At the moment I can access the NFS Share using WinSCP, and copy from the NFS Share to my windows PC without issue, but I don't believe I can schedule this.

      WinSCP can be scheduled. We are using it here to off-site several backups. I can take a look and see what all it takes to do that if you want.

      That would be awesome.

      1 Reply Last reply Reply Quote 0
      • DustinB3403D
        DustinB3403 @travisdh1
        last edited by

        @travisdh1 said:

        @Dashrender said:

        Why not create a SMB share at the same place the NFS share is. Then you can use Windows tools to do the copy.

        I was assuming @DustinB3403 wanted to avoid SAMBA.... yeah, I know, stop assuming!

        Yeah don't assume you ass 😛

        1 Reply Last reply Reply Quote 1
        • DustinB3403D
          DustinB3403 @travisdh1
          last edited by

          @travisdh1 said:

          Write a batch file to run WinSCP, and put the batch file in scheduler? That or learn how to use power shell properly.

          I'm pretty comfortable with Powershell and could probably figure it out, but wasn't that invested in trying to do it.

          1 Reply Last reply Reply Quote 0
          • dafyreD
            dafyre
            last edited by

            From Windows Batch File: sendBackup.bat

            @echo off
            "C:\Program Files (x86)\WinSCP\WinSCP.exe" /console /script=c:\drivers\scripts\send.info
            

            Contents of send.info:

            option batch on
            option confirm off
            open [email protected]
            option transfer binary
            put drive:\path\to\folder\*.*
            close
            exit
            

            From my discussion with the colleague... You'll need to run this as whatever user the backup job is going to run under, since the WinSCP settings are per user. (I think you'll need to set up the connection to the backup host manually)

            And change the put drive:\path\to\folder. to __get /path/to/backups/.

            And you should be good to go. If you can't get it going, let me know.

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

              @DustinB3403 said:

              At the moment I can access the NFS Share using WinSCP, and copy from the NFS Share to my windows PC without issue, but I don't believe I can schedule this.

              With PuTTY you can.

              DustinB3403D 1 Reply Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403 @scottalanmiller
                last edited by

                @scottalanmiller said:

                @DustinB3403 said:

                At the moment I can access the NFS Share using WinSCP, and copy from the NFS Share to my windows PC without issue, but I don't believe I can schedule this.

                With PuTTY you can.

                Care to elaborate?

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

                  @DustinB3403 said:

                  @scottalanmiller said:

                  @DustinB3403 said:

                  At the moment I can access the NFS Share using WinSCP, and copy from the NFS Share to my windows PC without issue, but I don't believe I can schedule this.

                  With PuTTY you can.

                  Care to elaborate?

                  PuTTY comes with a command line SCP client.

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

                    @scottalanmiller said:

                    @DustinB3403 said:

                    @scottalanmiller said:

                    @DustinB3403 said:

                    At the moment I can access the NFS Share using WinSCP, and copy from the NFS Share to my windows PC without issue, but I don't believe I can schedule this.

                    With PuTTY you can.

                    Care to elaborate?

                    PuTTY comes with a command line SCP client.

                    I never noticed / knew that!

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

                      @dafyre said:

                      @scottalanmiller said:

                      @DustinB3403 said:

                      @scottalanmiller said:

                      @DustinB3403 said:

                      At the moment I can access the NFS Share using WinSCP, and copy from the NFS Share to my windows PC without issue, but I don't believe I can schedule this.

                      With PuTTY you can.

                      Care to elaborate?

                      PuTTY comes with a command line SCP client.

                      I never noticed / knew that!

                      Took me like a decade or so before someone pointed it out to me recently too 🙂

                      DashrenderD 1 Reply Last reply Reply Quote 3
                      • DashrenderD
                        Dashrender @scottalanmiller
                        last edited by

                        @scottalanmiller said:

                        @dafyre said:

                        @scottalanmiller said:

                        @DustinB3403 said:

                        @scottalanmiller said:

                        @DustinB3403 said:

                        At the moment I can access the NFS Share using WinSCP, and copy from the NFS Share to my windows PC without issue, but I don't believe I can schedule this.

                        With PuTTY you can.

                        Care to elaborate?

                        PuTTY comes with a command line SCP client.

                        I never noticed / knew that!

                        Took me like a decade or so before someone pointed it out to me recently too 🙂

                        it's robocopy all over again 😛

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