rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[rdiff-backup-users] Database backups: AssertionError: Found too many cu


From: Jeff Blasius
Subject: [rdiff-backup-users] Database backups: AssertionError: Found too many current_mirror incs!
Date: Thu, 18 Mar 2004 10:38:00 -0500
User-agent: Mozilla Thunderbird 0.5 (X11/20040208)

Hello all,
I just want to verify what I think is happening. It looks like if the database file does not change for three backups it will not backup the file again?? If the file does change will rdiff-backup
back it up?

Also, is there a better way to do this?

Thank You,
             jeff

Here is my code:
#!/bin/bash
touch /tmp/postgres/postgres_dump.sql
chown postgres.postgres -R /tmp/postgres
chmod 700 -R /tmp/postgres
su - postgres -c "pg_dumpall > /tmp/postgres/postgres_dump.sql"
rdiff-backup --remove-older-than 1M /system/backups/rdiff_postgres/
rdiff-backup /tmp/postgres/ /system/backups/rdiff_postgres/
chmod 600 /system/backups/rdiff_postgres/postgres_dump.sql
rm -f /tmp/postgres/postgres_dump.sql

Here is the dump:

/etc/cron.daily/dump_postgres.sh:

Traceback (most recent call last):
 File "/usr/bin/rdiff-backup", line 24, in ?
   rdiff_backup.Main.Main(sys.argv[1:])
 File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 250, in Main
   take_action(rps)
 File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 230, in 
take_action
   elif action == "remove-older-than": RemoveOlderThan(rps[0])
 File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 545, in 
RemoveOlderThan
   rot_check_dir(rootrp)
 File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 577, in 
rot_check_dir
   checkdest_if_necessary(rootrp)
 File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 652, in 
checkdest_if_necessary
   need_check = checkdest_need_check(dest_rp)
 File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 643, in 
checkdest_need_check
   assert len(curmir_incs) == 2, "Found too many current_mirror incs!"
AssertionError: Found too many current_mirror incs!
Traceback (most recent call last):
 File "/usr/bin/rdiff-backup", line 24, in ?
   rdiff_backup.Main.Main(sys.argv[1:])
 File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 250, in Main
   take_action(rps)
 File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 222, in 
take_action
   elif action == "backup": Backup(rps[0], rps[1])
 File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 260, in 
Backup
   backup_init_dirs(rpin, rpout)
 File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 292, in 
backup_init_dirs
   checkdest_if_necessary(rpout)
 File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 652, in 
checkdest_if_necessary
   need_check = checkdest_need_check(dest_rp)
 File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 643, in 
checkdest_need_check
   assert len(curmir_incs) == 2, "Found too many current_mirror incs!"
AssertionError: Found too many current_mirror incs!






reply via email to

[Prev in Thread] Current Thread [Next in Thread]