cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jasonthephoneguy
New Contributor II

backup with python not working

Jump to solution

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

Labels (1)
0 Kudos
1 Solution

Accepted Solutions

Re: backup with python not working

Jump to solution

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!

View solution in original post

0 Kudos
10 Replies
Anonymous
Not applicable

Re: backup with python not working

Jump to solution

Jason,

Which part of these steps have you done so far:

Set up the backup

1. Please download.

Re: backup with python not working

Jump to solution

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>

Anonymous
Not applicable

Re: backup with python not working

Jump to solution

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

Re: backup with python not working

Jump to solution

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.    

Anonymous
Not applicable

Re: backup with python not working

Jump to solution

When you created the backup script from the GUI, what IP did you use?

-Mark

Re: backup with python not working

Jump to solution

10.10.10.1 - I'm using default settings for most of this. DHCP enabled.    

Anonymous
Not applicable

Re: backup with python not working

Jump to solution

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

Re: backup with python not working

Jump to solution

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!

0 Kudos
Anonymous
Not applicable

Re: backup with python not working

Jump to solution

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

Re: backup with python not working

Jump to solution

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