Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Automatic backup to FTP server

    Scheduled Pinned Locked Moved General pfSense Questions
    20 Posts 4 Posters 10.8k Views
    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.
    • H
      hoba
      last edited by

      You have to use sftp(fallback scp) as protocol (the middle option). Login as user "root" and password <webguipassword>.</webguipassword>

      1 Reply Last reply Reply Quote 0
      • K
        kapara
        last edited by

        Excellent!!!!!!!!!!…One last question.  If I backup the config.xml...How does that effect any packages that I have added?  Is that information in the config/xml so when I reload a config it will automatically install the packages which were previously installed?

        Thanks

        Skype ID:  Marinhd

        1 Reply Last reply Reply Quote 0
        • H
          hoba
          last edited by

          You have to manually install the packages but their settings will be stored in the config.xml.

          1 Reply Last reply Reply Quote 0
          • K
            kapara
            last edited by

            Found a great product…http://www.xi-soft.com/  Lets me connect and schedule backups of the configs using the application.  Only $24 if bought.  Tried it out.  Lets me do any schedule.

            Just mapped to the file and it worked perfectly.

            Thanks for the help.

            Skype ID:  Marinhd

            1 Reply Last reply Reply Quote 0
            • K
              kapara
              last edited by

              If others would like to be able to do this for large installations I will create a tutorial once I feel comfortable with the program.  Let me know.

              Thanks,

              Mark

              Skype ID:  Marinhd

              1 Reply Last reply Reply Quote 0
              • H
                hoba
                last edited by

                Not sure others want to buy a software if you can simply script it with the free winscp or even with the solution scott pointed out earlier in this thread but fell free to do a tutorial.  ;)

                1 Reply Last reply Reply Quote 0
                • D
                  DanielSHaischt
                  last edited by

                  No offense, but I don't understand why you are going to pay for something that you can get for free even on Windows.

                  Just use the Windows Task Scheduler! It's a native Windows feature. See:

                  http://www.iopus.com/guides/winscheduler.htm
                  http://support.microsoft.com/kb/308569

                  Additionally I was using PuTTY's pscp commandline utility to do the actual download. To do the download you have to execute pscp like this:

                  
                  "C:\Programme\Simon Tatham\PuTTY\pscp -P 22 -l root -pw pfsense -2 -batch gw-buero.abyssworld.de:\conf\config.xml c:\blah.xml"
                  
                  

                  This downloads the config.xml to c:\blah.xml.

                  Cheers
                  Daniel S. Haischt

                  Mit freundlichen Gruessen / With kind regards
                  DAn.I.El S. Haischt

                  1 Reply Last reply Reply Quote 0
                  • K
                    kapara
                    last edited by

                    No offense taken….the more help the better.  If someone has a better idea or easier way to acheive the same goal I am all for it.  I am a windows guy and because of that I tend to lean towards gui applications to perform what I am trying to do.  My other reason is I wanted to be able to receive an email notification if failure occured when trying to copy the file.  If there is a reliable way to do this for free I am all for it.

                    Thanks again for all your help.

                    Mark

                    Skype ID:  Marinhd

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

                      @kapara:

                      No offense taken….the more help the better.  If someone has a better idea or easier way to acheive the same goal I am all for it.  I am a windows guy and because of that I tend to lean towards gui applications to perform what I am trying to do.  My other reason is I wanted to be able to receive an email notification if failure occured when trying to copy the file.  If there is a reliable way to do this for free I am all for it.

                      Thanks again for all your help.

                      Mark

                      ReRead Daniels post.  He gave you a free windows solution.

                      1 Reply Last reply Reply Quote 0
                      • K
                        kapara
                        last edited by

                        I did read it and yes it is a good solution…but as I stated I would like to be able to receive an email notification if failure occurs because I am looking to backup 25+ boxes.  Just to make sure I read about Putty's PSCP and MS Scheduler and found nothing regarding email notification.  If I have over looked something, my apologies.

                        Mark

                        Skype ID:  Marinhd

                        1 Reply Last reply Reply Quote 0
                        • H
                          hoba
                          last edited by

                          There are free tools to send mails from a batchjob as well like http://www.beyondlogic.org/solutions/cmdlinemail/cmdlinemail.htm
                          Discover the power of scripting  ;)

                          1 Reply Last reply Reply Quote 0
                          • K
                            kapara
                            last edited by

                            Sounds good.  Now I will have to see if there is a way to use this new program with putty's solution to email me only if failure occurs.  I used a site a while back called batchworld for assistance with scripting.  http://groups.yahoo.com/group/batchworld/ They are very helpful with giving answers to this kind of stuff.  Thanks for the tip on the commandline email utility.

                            Mark

                            Skype ID:  Marinhd

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

                              winscp will return an error to the caller if it fails.  Check for a failure code.  This is all possible on windows shell scripting.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.