SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Broken rdiff-backup on Fedora 11
Author Message
Post Broken rdiff-backup on Fedora 11 
I have installed rdiff-backup 1.2.8 from the repositories on my
computer with Fedora 11 x86_64. The latest python in the repositories is
2.2.6, which is also installed. When I attempt to run it I get a page
of error messages, all of which lead me to conclude that there is an
incompatibility between python 2.6 and rdiff-backup 1.2.8.

I run it from a simple script. I am relatively new to Fedora, and the
script was originally written when I was using Ubuntu. It worked fine
there. I do not know what version of python or rdiff-backup was
installed then; all I know is that it "just worked."

A local Linux friend who understands python told me I needed to run
setup.py. There is a README file for rdiff-backup that says to install
it you need to run "python setup.py install." Unfortunately, the README
does not say what directory to run the command from. I searched my
entire filesystem for "setup.py" and found ten of them, all
in /usr/lib64/python2.6/site-packages/numpy/. I have been told that
those are the wrong setup.py files.

Basically I need to run setup.py to reconfigure rdiff-backup for python
2.6. But I can't figure out which setup.py to run.

Can someone please give me a clue here? Or if there is an easier/better
way to get rdiff-backup working on Fedora 11, please tell me how. Oh,
and I installed pybackpack, the GUI front end for rdiff-backup, and it
runs fine. The only problem is that pybackpack does not allow me to
exclude files with a wildcard. It can exclude only folders. I have a
lot of distro ISOs scattered around and there is no need to back them
up, so I want to exclude *.iso. Therefore, I want to run rdiff-backup
from the command line.


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Broken rdiff-backup on Fedora 11 
On Tue, Feb 02, 2010 at 06:22:22PM -0800, John Jason Jordan wrote:
I have installed rdiff-backup 1.2.8 from the repositories on my
computer with Fedora 11 x86_64. The latest python in the repositories is
2.2.6, which is also installed. When I attempt to run it I get a page
of error messages, all of which lead me to conclude that there is an
incompatibility between python 2.6 and rdiff-backup 1.2.8.

I assume that by 2.2.6 you just mean 2.6?


I'm running on fedora 12, and it just works. You don't need to run the
setup.py -- that's if you didn't install the packaged version.

What are the "page of error messages" you get?

--
Matthew Miller mattdm < at > mattdm.org <http://mattdm.org/>


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Broken rdiff-backup on Fedora 11 
On Tue, 2 Feb 2010 21:26:54 -0500
Matthew Miller <mattdm < at > mattdm.org> dijo:

On Tue, Feb 02, 2010 at 06:22:22PM -0800, John Jason Jordan wrote:
I have installed rdiff-backup 1.2.8 from the repositories on my
computer with Fedora 11 x86_64. The latest python in the
repositories is 2.2.6, which is also installed. When I attempt to
run it I get a page of error messages, all of which lead me to
conclude that there is an incompatibility between python 2.6 and
rdiff-backup 1.2.8.

I assume that by 2.2.6 you just mean 2.6?

Yes. Sorry for the confusion.

I'm running on fedora 12, and it just works. You don't need to run the
setup.py -- that's if you didn't install the packaged version.

What are the "page of error messages" you get?

------------
[jjj < at > Devil8 ~]$ ./rdiff-backup_script <the script I wrote, see below>
[sudo] password for jjj:
Exception 'list index out of range' raised of class '<type
'exceptions.IndexError'>': File
"/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 304, in
error_check_Main try: Main(arglist) File
"/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 324, in
Main take_action(rps) File
"/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 287, in
take_action elif action == 'list-increment-sizes':
ListIncrementSizes(rps[0]) File
"/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 746, in
ListIncrementSizes print manage.ListIncrementSizes(restore_root,
restore_index) File
"/usr/lib64/python2.6/site-packages/rdiff_backup/manage.py", line 202,
in ListIncrementSizes triples = get_summary_triples(mirror_total,
time_dict) File
"/usr/lib64/python2.6/site-packages/rdiff_backup/manage.py", line 179,
in get_summary_triples mirror_time =
restore.get_inclist(cur_mir_base)[0].getinctime()

Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 30, in <module>
rdiff_backup.Main.error_check_Main(sys.argv[1:])
File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line
304, in error_check_Main try: Main(arglist)
File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line
324, in Main take_action(rps)
File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line
287, in take_action elif action == 'list-increment-sizes':
ListIncrementSizes(rps[0]) File
"/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 746, in
ListIncrementSizes print manage.ListIncrementSizes(restore_root,
restore_index) File
"/usr/lib64/python2.6/site-packages/rdiff_backup/manage.py", line 202,
in ListIncrementSizes triples = get_summary_triples(mirror_total,
time_dict) File
"/usr/lib64/python2.6/site-packages/rdiff_backup/manage.py", line 179,
in get_summary_triples mirror_time =
restore.get_inclist(cur_mir_base)[0].getinctime() IndexError: list
index out of range
------------

Sorry for the formatting. Hard to copy and paste from the command line.

My script is:

#!/bin/bash
sudo rdiff-backup
--include-globbing-filelist /home/jjj/rdiff_excludes.txt / /media/Backups/Full_system_backup_Fedora
2> /home/jjj/rdiff-errors.txt sudo rdiff-backup
2> --list-increment-sizes /media/Backups/Full_system_backup_Fedora
2> > /home/jjj/rdiff-stats.txt

The folder /Full_system_backup_Fedora exists and I can read/write to it.

The rdiff_excludes.txt file is:

- /sys
- /media
- /mnt
- /tmp
- /proc
- /home/jjj/.gtkrc-1.2-gnome2/.gvfs
- /home/jjj/.gvfs
- /home/jjj/Azureus Downloads
- /var/run/cups/cups.sock
- /var/run/postgresql/.s.PGSQL.5433
- *.iso
- *.ISO

I installed rdiff-backup from the Fedora 11 repositories with Yumex.
I'm not sure how python was installed - probably either by default
during the installation of Fedora 11 (on a fresh hard disk) or as a
dependency when I installed rdiff-backup.

It is interesting that pybackpack runs fine. My understanding is that
it is just a GUI front end for rdiff-backup, so why does it work and
rdiff-backup does not work from the command line?

Thanks for the response. Smile


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Broken rdiff-backup on Fedora 11 
On Tue, 02 Feb 2010 20:23:57 -0800, John Jason Jordan <johnxj < at > comcast.net> wrote:
Sorry for the formatting. Hard to copy and paste from the command line.

My script is:

#!/bin/bash
sudo rdiff-backup
--include-globbing-filelist /home/jjj/rdiff_excludes.txt / /media/Backups/Full_system_backup_Fedora
2> /home/jjj/rdiff-errors.txt sudo rdiff-backup
2> --list-increment-sizes /media/Backups/Full_system_backup_Fedora
2> > /home/jjj/rdiff-stats.txt
[...]
It is interesting that pybackpack runs fine. My understanding is that
it is just a GUI front end for rdiff-backup, so why does it work and
rdiff-backup does not work from the command line?

Well, that bash script didn't survive the cut and paste either, so
I'm sure exactly what it actually says.

If pybackpack does use rdiff-backup under the covers and you can back
up files with it, then your rdiff-backup installation would appear to
be correct. (You should double check that you only have one copy of
rdfiff-backup on the system, in case pybackpack is using a different one
from the one you get when you run the command from the command line.)
So one suspects the problem is with the bash script somehow, or with
the repository you are manipulating if it is different from the one
pybackpack is using.

Have you tried running rdiff-backup directly from the command line
doing something simple like just viewing the help output? And
then try the commands from the bash script individually, and/or
other rdiff-backup commands that just read from the repository.

--
R. David Murray www.bitdance.com
Business Process Automation - Network/Server Management - Routers/Firewalls


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Broken rdiff-backup on Fedora 11 
On Wed, 03 Feb 2010 11:22:13 -0500
"R. David Murray" <rdmurray < at > bitdance.com> dijo:

On Tue, 02 Feb 2010 20:23:57 -0800, John Jason Jordan
<johnxj < at > comcast.net> wrote:
#!/bin/bash
sudo rdiff-backup
--include-globbing-filelist /home/jjj/rdiff_excludes.txt / /media/Backups/Full_system_backup_Fedora
2> /home/jjj/rdiff-errors.txt sudo rdiff-backup
2> --list-increment-sizes /media/Backups/Full_system_backup_Fedora
2> > /home/jjj/rdiff-stats.txt
[...]
It is interesting that pybackpack runs fine. My understanding is that
it is just a GUI front end for rdiff-backup, so why does it work and
rdiff-backup does not work from the command line?

Well, that bash script didn't survive the cut and paste either, so
I'm sure exactly what it actually says.

OK, let me try to paste it here again.

#!/bin/bash
sudo rdiff-backup --include-globbing-filelist /home/jjj/rdiff_excludes.txt / /media/Backups/Full_system_backup_Fedora 2> /home/jjj/rdiff-errors.txt
sudo rdiff-backup --list-increment-sizes /media/Backups/Full_system_backup_Fedora > /home/jjj/rdiff-stats.txt

I turned off autowrapping in my compose window, but in case it wraps it
is three lines. The second line starts with sudo and ends with
rdiff-errrors.txt. The third line starts with sudo and ends with
rdiff-stats.txt.

If pybackpack does use rdiff-backup under the covers and you can back
up files with it, then your rdiff-backup installation would appear to
be correct. (You should double check that you only have one copy of
rdfiff-backup on the system, in case pybackpack is using a different
one from the one you get when you run the command from the command
line.) So one suspects the problem is with the bash script somehow, or
with the repository you are manipulating if it is different from the
one pybackpack is using.

Have you tried running rdiff-backup directly from the command line
doing something simple like just viewing the help output? And
then try the commands from the bash script individually, and/or
other rdiff-backup commands that just read from the repository.

Thanks for the above suggestions. I ran a simple copy of one folder to
the Backups disk mounted at /media/Backups and the command did as
it was supposed to without error. Therefore, I must conclude that
there is something wrong with the script.

This script ran fine on Ubuntu Jaunty which was the last time I ran it.
I bought a new hard disk for my computer (Thinkpad T61) and installed
Fedora 11 x86_64 on it, and put the hard disk with Jaunty on the shelf.
I have a third hard disk for backups that I place in the Ultrabay adapter
which I can swap with the DVD drive. On this disk there is a folder
"Full_system_backup_Jaunty." I created a new folder "Full_system_backup_Fedora"
and then modified the script so it would write to the new folder.
Other than changing the destination folder I made no other changes
to the script. However, I also modified my rdiff_excludes.txt file by adding
"- *.iso" and "- /home/jjj/Azureus Downloads/".

I'll paste the errors again here. Maybe they'll be easier to read without
autowrapping:

[jjj < at > Devil8 ~]$ ./rdiff-backup_script
[sudo] password for jjj:
Exception 'list index out of range' raised of class '<type 'exceptions.IndexError'>':
File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 304, in error_check_Main
try: Main(arglist)
File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 324, in Main
take_action(rps)
File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 287, in take_action
elif action == 'list-increment-sizes': ListIncrementSizes(rps[0])
File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 746, in ListIncrementSizes
print manage.ListIncrementSizes(restore_root, restore_index)
File "/usr/lib64/python2.6/site-packages/rdiff_backup/manage.py", line 202, in ListIncrementSizes
triples = get_summary_triples(mirror_total, time_dict)
File "/usr/lib64/python2.6/site-packages/rdiff_backup/manage.py", line 179, in get_summary_triples
mirror_time = restore.get_inclist(cur_mir_base)[0].getinctime()

Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 30, in <module>
rdiff_backup.Main.error_check_Main(sys.argv[1:])
File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 304, in error_check_Main
try: Main(arglist)
File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 324, in Main
take_action(rps)
File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 287, in take_action
elif action == 'list-increment-sizes': ListIncrementSizes(rps[0])
File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 746, in ListIncrementSizes
print manage.ListIncrementSizes(restore_root, restore_index)
File "/usr/lib64/python2.6/site-packages/rdiff_backup/manage.py", line 202, in ListIncrementSizes
triples = get_summary_triples(mirror_total, time_dict)
File "/usr/lib64/python2.6/site-packages/rdiff_backup/manage.py", line 179, in get_summary_triples
mirror_time = restore.get_inclist(cur_mir_base)[0].getinctime()
IndexError: list index out of range

I'm still stumped, but at least now it appears the problem is in
the script and not in rdiff-backup.

Thanks for your suggestions. Smile


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Broken rdiff-backup on Fedora 11 
On Wed, 03 Feb 2010 12:01:23 -0800, John Jason Jordan <johnxj < at > comcast.net> wrote:
which I can swap with the DVD drive. On this disk there is a folder
"Full_system_backup_Jaunty." I created a new folder "Full_system_backup_Fedora"
and then modified the script so it would write to the new folder.
Other than changing the destination folder I made no other changes
to the script. However, I also modified my rdiff_excludes.txt file by adding
"- *.iso" and "- /home/jjj/Azureus Downloads/".

I don't think changing the excludes will have made a difference, but
you could try deleting them just to check.

From the looks of the traceback you posted, I suspect there's something
wrong with your destination folder. Although I don't really understand
the code in detail, it appears to me as though rdiff-backup is finding
an empty list of increments, something it apparently isn't prepared
to handle.

I'm assuming you are getting one traceback for each command in your bash
file, if that isn't the case let me know Smile

I'd advise deleting your backup target directory and reinitializing it.

--
R. David Murray www.bitdance.com
Business Process Automation - Network/Server Management - Routers/Firewalls


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Broken rdiff-backup on Fedora 11 
On Wed, 03 Feb 2010 16:53:26 -0500
"R. David Murray" <rdmurray < at > bitdance.com> dijo:

On Wed, 03 Feb 2010 12:01:23 -0800, John Jason Jordan
<johnxj < at > comcast.net> wrote:
which I can swap with the DVD drive. On this disk there is a folder
"Full_system_backup_Jaunty." I created a new folder
"Full_system_backup_Fedora" and then modified the script so it would
write to the new folder. Other than changing the destination folder
I made no other changes to the script. However, I also modified my
rdiff_excludes.txt file by adding "- *.iso" and "- /home/jjj/Azureus
Downloads/".

I don't think changing the excludes will have made a difference, but
you could try deleting them just to check.

From the looks of the traceback you posted, I suspect there's something
wrong with your destination folder. Although I don't really understand
the code in detail, it appears to me as though rdiff-backup is finding
an empty list of increments, something it apparently isn't prepared
to handle.

I'm assuming you are getting one traceback for each command in your
bash file, if that isn't the case let me know Smile

I'd advise deleting your backup target directory and reinitializing it.

Nailed it!

I started by deleting the backup folder. When I ran the script I got
the same errors, but it did recreate the folder before failing. The
folder was empty.

Then I decided to delete the additions that I made to the excludes
list. While opening it I noticed that there was a file
rdiff-backup-errors.txt. I opened it up and it referred to two of the
additions that I had made to the excludes list. So I deleted only those
entries in the excludes list, saved it, and ran the script. It is
happily backing up as I write this. Yay!

Now I just need to figure out how to exclude all files that end
with .iso and .ISO. I have a lot of distro ISOs on my computer and it
would be silly to back them up. My excludes list was:

- /sys
- /media
- /mnt
- /tmp
- /proc
- /home/jjj/.gtkrc-1.2-gnome2/.gvfs
- /home/jjj/.gvfs
- /home/jjj/Azureus Downloads
- /var/run/cups/cups.sock
- /var/run/postgresql/.s.PGSQL.5433
- *.iso
- *.ISO

To get the script to run I had to delete the last two. Apparently my
syntax is faulty, but I can't figure out how to do it. The instructions
in the man page were written for someone smarter than me.

Thanks again for the help!


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Broken rdiff-backup on Fedora 11 
On Wed, 03 Feb 2010 14:29:05 -0800, John Jason Jordan <johnxj < at > comcast.net> wrote:
- *.iso
- *.ISO

To get the script to run I had to delete the last two. Apparently my
syntax is faulty, but I can't figure out how to do it. The instructions
in the man page were written for someone smarter than me.

Your problem is that '*' doesn't match directories. So you want **.iso,
I think (or is it **/*.iso? I'm not completely clear on how ** works.)

--
R. David Murray www.bitdance.com
Business Process Automation - Network/Server Management - Routers/Firewalls


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB