Hello!
I'm trying to do a backup of our Netvanta 7100 using Python. I run the script, and it creates a readme.txt file that tells me:
2015-02-24 11:01:54,247 INFO Logging into 7100 using:
2015-02-24 11:01:54,250 INFO IP: 10.10.10.1
2015-02-24 11:01:54,252 INFO Username: backupftp
2015-02-24 11:01:54,253 INFO Password: *******
2015-02-24 11:01:54,253 INFO Archive: zip
I've used tar, and zip. Neither one of these will create the backup file with the appended date as it says it will in the directions. I am able to login using CoreFTP and my ftp credentials above, so I'm not thinking that's the issue.
Help?
Thank you!!!
- Jason
Well... I figured it out...
I ran the script using the Python on my Linux machine and I was able to successfully run a backup script. I'm thinking my installation of Python was incorrect. But in either case, I can do what I need to do with Linux - and I'm good with that!!!! 😃
Thank you for taking the time to work with me on this issue. I really appreciate it!
Jason,
Which part of these steps have you done so far:
Set up the backup
1. Please download.
Hey Mark!
I believe I'm up to #4 "run the script"
It doesn't give out any errors, but step #5 doesn't happen:
5. This will place a backup archive in the same directory as the script with the filename <PBX_name>-YYYY-MM-DD.<zip|tar|tar.gz|tar.bz2>
Jason
Under the “Set up the backup” section, for step 2, what type of backup did you create? Zip, tar, tar.gz, or tar.bz2?
Also did you enter a username and password that has FTP access on your 7100? Typically the username/password that you log into the gui with should work.
-Mark
I've tried both the zip and tar file (first 2 options).
Yes, I created the ftp user and tested it's connection with another FTP client. All good there I believe.
When you created the backup script from the GUI, what IP did you use?
-Mark
10.10.10.1 - I'm using default settings for most of this. DHCP enabled.
Jason,
What version Python did you download?
Is there anything else in the Readme.txt file? No errors or any other information? I ran the script which ended in .py. when I ran it, a new screen appeared with text in it. Then it ran for a long time and created a .zip file.
If your just getting just this info in the readme:
2015-02-24 11:01:54,247 INFO Logging into 7100 using:
2015-02-24 11:01:54,250 INFO IP: 10.10.10.1
2015-02-24 11:01:54,252 INFO Username: backupftp
2015-02-24 11:01:54,253 INFO Password: *******
2015-02-24 11:01:54,253 INFO Archive: zip
Then telnet or SSH into your 7100 and run this debug: debug ip ftp-server
Delete all the files all the extra files in the folder that contains the script. So just the script is only file. Then run it again and see what debug appears.
-Mark
Well... I figured it out...
I ran the script using the Python on my Linux machine and I was able to successfully run a backup script. I'm thinking my installation of Python was incorrect. But in either case, I can do what I need to do with Linux - and I'm good with that!!!! 😃
Thank you for taking the time to work with me on this issue. I really appreciate it!
Glad you figured it out. I was running Python 2.7.3
If you were running Python 3, the script will not work.
Have a good weekend!
-Mark
I was using Python 2.7.4 - same as what's installed on my Linux machine. I'm guessing that I didn't follow the installation configuration for Windows correctly or something. =/ lol