Re: [rdiff-backup-users] Broken rdiff-backup on Fedora 11

2010-02-03 Thread R. David Murray
On Tue, 02 Feb 2010 20:23:57 -0800, John Jason Jordan joh...@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@nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki


Re: [rdiff-backup-users] Broken rdiff-backup on Fedora 11

2010-02-03 Thread R. David Murray
On Wed, 03 Feb 2010 12:01:23 -0800, John Jason Jordan joh...@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 :)

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@nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki


Re: [rdiff-backup-users] Broken rdiff-backup on Fedora 11

2010-02-02 Thread Matthew Miller
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   mat...@mattdm.org  http://mattdm.org/


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


Re: [rdiff-backup-users] Broken rdiff-backup on Fedora 11

2010-02-02 Thread John Jason Jordan
On Tue, 2 Feb 2010 21:26:54 -0500
Matthew Miller mat...@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?


[...@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. :)


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