SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
rdiff-backup does not accept destination directory
Author Message
Post rdiff-backup does not accept destination directory 
Hi!

I assume I'm just missing something stupid, but I just don't get what it is.

I'm trying to backup from server "vserver811" (aka "schizo") to server
"kaotix", using Backupninja [1]. On kaotix, user "backupschizo" is
supposed to store the files to /home/backupschizo.

Some details were [replaced] to protect my privacy.

vserver811:~# backupninja -d -n
[lines_without_warnings_removed]
Info: >>>> starting action /etc/backup.d/90-transfer.rdiff (because of
--now)
Debug: yes
Debug: ssh -o PreferredAuthentications=publickey [FQDN_of_kaotix] -l
backupschizo 'echo -n 1'
Warning: Permanently added the RSA host key for IP address
'[IP_address_of_kaotix]' to the list of known hosts.
host is alive
Debug: Connected to [FQDN of kaotix] as backupschizo successfully
Debug: ssh -o PreferredAuthentications=publickey [FQDN_of_kaotix] -l
backupschizo '/usr/bin/rdiff-backup -V'"
Debug: rdiff-backup --force --remove-older-than 60D
backupschizo < at > [FQDN_of_kaotix]::/home/backupschizo/schizo
Warning: Fatal Error: Bad directory /home/backupschizo/schizo. It
doesn't appear to be an rdiff-backup destination dir
Warning: Failed removing backups older than 60D.
Debug: /usr/bin/rdiff-backup --print-statistics --include
'/var/spool/cron/crontabs' --include '/var/backups' --include '/etc'
--include '/root' --include '/home' --include '/usr/local/bin' --include
'/usr/local/sbin' --include '/var/lib/dpkg/status' --include
'/var/lib/dpkg/status-old' --exclude '/*' /
backupschizo < at > [FQDN_of_kaotix]::/home/backupschizo/schizo
Warning: su: Permission denied
Warning: Failed backup up source 'schizo'
Warning: <<<< finished action /etc/backup.d/90-transfer.rdiff: WARNING
Debug: send report to root
Info: FINISHED: 4 actions run. 0 fatal. 0 error. 5 warning.


So, the real (first) problem seems to be this:
rdiff-backup --force --remove-older-than 60D
backupschizo < at > mo666.ath.cx::/home/backupschizo/schizo
Warning: Fatal Error: Bad directory /home/backupschizo/schizo. It
doesn't appear to be an rdiff-backup destination dir
Warning: Failed removing backups older than 60D.

While the second warning makes sense (rdiff-backup never wrote anything
to this directory as it thinks it is not able to), the first one make me
puzzle.

Looking at this error message, it seems like backupschizo < at > kaotix cannot
write to /home/backupschizo/schizo

However, it can:
backupschizo < at > kaotix:~$ touch /home/backupschizo/schizo/test
backupschizo < at > kaotix:~$

backupschizo < at > kaotix:~$ ls -lah /home/backupschizo/schizo/test
-rw-r--r-- 1 backupschizo backupschizo 0 2005-09-06 22:38
/home/backupschizo/schizo/test

backupschizo < at > kaotix:~$ ls -lah /home/backupschizo/*
insgesamt 8,0K
drwxr-xr-x 2 backupschizo backupschizo 4,0K 2005-09-06 22:38 .
drwxr-xr-x 4 backupschizo backupschizo 4,0K 2005-09-06 22:37 ..
-rw-r--r-- 1 backupschizo backupschizo 0 2005-09-06 22:38 test

I also tried removing /home/backupschizo/schizo/ and then retrying
rdiff-backup with the usage given by backupninja. However, this gave
exactly the same errors.

rdiff-backup is the same version on bother servers:

vserver811:~# rdiff-backup --version
rdiff-backup 0.13.4

backupschizo < at > kaotix:~$ rdiff-backup --version
rdiff-backup 0.13.4

I'm also wondering how or whether it is possible to use rdiff-backup on
a different port than 22?

Thanks in advance for your help!
Moritz

[1] Backupninja: http://dev.riseup.net/backupninja/

Post rdiff-backup does not accept destination directory 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I assume I'm just missing something stupid, but I just don't get what it is.

I'm trying to backup from server "vserver811" (aka "schizo") to server
"kaotix", using Backupninja [1]. On kaotix, user "backupschizo" is
supposed to store the files to /home/backupschizo.

Some details were [replaced] to protect my privacy.

vserver811:~# backupninja -d -n
[lines_without_warnings_removed]
Info: >>>> starting action /etc/backup.d/90-transfer.rdiff (because of
- --now)
Debug: yes
Debug: ssh -o PreferredAuthentications=publickey [FQDN_of_kaotix] -l
backupschizo 'echo -n 1'
Warning: Permanently added the RSA host key for IP address
'[IP_address_of_kaotix]' to the list of known hosts.
host is alive
Debug: Connected to [FQDN of kaotix] as backupschizo successfully
Debug: ssh -o PreferredAuthentications=publickey [FQDN_of_kaotix] -l
backupschizo '/usr/bin/rdiff-backup -V'"
Debug: rdiff-backup --force --remove-older-than 60D
backupschizo < at > [FQDN_of_kaotix]::/home/backupschizo/schizo
Warning: Fatal Error: Bad directory /home/backupschizo/schizo. It
doesn't appear to be an rdiff-backup destination dir
Warning: Failed removing backups older than 60D.
Debug: /usr/bin/rdiff-backup --print-statistics --include
'/var/spool/cron/crontabs' --include '/var/backups' --include '/etc'
- --include '/root' --include '/home' --include '/usr/local/bin' --include
'/usr/local/sbin' --include '/var/lib/dpkg/status' --include
'/var/lib/dpkg/status-old' --exclude '/*' /
backupschizo < at > [FQDN_of_kaotix]::/home/backupschizo/schizo
Warning: su: Permission denied
Warning: Failed backup up source 'schizo'
Warning: <<<< finished action /etc/backup.d/90-transfer.rdiff: WARNING
Debug: send report to root
Info: FINISHED: 4 actions run. 0 fatal. 0 error. 5 warning.


So, the real (first) problem seems to be this:
rdiff-backup --force --remove-older-than 60D
backupschizo < at > mo666.ath.cx::/home/backupschizo/schizo
Warning: Fatal Error: Bad directory /home/backupschizo/schizo. It
doesn't appear to be an rdiff-backup destination dir
Warning: Failed removing backups older than 60D.

While the second warning makes sense (rdiff-backup never wrote anything
to this directory as it thinks it is not able to), the first one make me
puzzle.

Looking at this error message, it seems like backupschizo < at > kaotix cannot
write to /home/backupschizo/schizo

However, it can:
backupschizo < at > kaotix:~$ touch /home/backupschizo/schizo/test
backupschizo < at > kaotix:~$

backupschizo < at > kaotix:~$ ls -lah /home/backupschizo/schizo/test
- -rw-r--r-- 1 backupschizo backupschizo 0 2005-09-06 22:38
/home/backupschizo/schizo/test

backupschizo < at > kaotix:~$ ls -lah /home/backupschizo/*
insgesamt 8,0K
drwxr-xr-x 2 backupschizo backupschizo 4,0K 2005-09-06 22:38 .
drwxr-xr-x 4 backupschizo backupschizo 4,0K 2005-09-06 22:37 ..
- -rw-r--r-- 1 backupschizo backupschizo 0 2005-09-06 22:38 test

I also tried removing /home/backupschizo/schizo/ and then retrying
rdiff-backup with the usage given by backupninja. However, this gave
exactly the same errors.

rdiff-backup is the same version on bother servers:

vserver811:~# rdiff-backup --version
rdiff-backup 0.13.4

backupschizo < at > kaotix:~$ rdiff-backup --version
rdiff-backup 0.13.4

I'm also wondering how or whether it is possible to use rdiff-backup on
a different port than 22?

Thanks in advance for your help!
Moritz

[1] Backupninja: http://dev.riseup.net/backupninja/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDH4s9n6GkvSd/BgwRAmoxAJ0UNAEI5nYT5YgzwcWvLLN1Bg70qgCdHL1Z
SwRvMoikEAPZCf00WEh9Lpc=
=5QlM
-----END PGP SIGNATURE-----

Post rdiff-backup does not accept destination directory 
Moritz Naumann <rdiff-backup < at > moritz-naumann.com>
wrote the following on Thu, 08 Sep 2005 02:52:47 +0200

I'm trying to backup from server "vserver811" (aka "schizo") to server
"kaotix", using Backupninja [1]. On kaotix, user "backupschizo" is
supposed to store the files to /home/backupschizo.
...
Debug: /usr/bin/rdiff-backup --print-statistics --include
'/var/spool/cron/crontabs' --include '/var/backups' --include '/etc'
--include '/root' --include '/home' --include '/usr/local/bin' --include
'/usr/local/sbin' --include '/var/lib/dpkg/status' --include
'/var/lib/dpkg/status-old' --exclude '/*' /
backupschizo < at > [FQDN_of_kaotix]::/home/backupschizo/schizo
Warning: su: Permission denied
Warning: Failed backup up source 'schizo'

I'm not familiar with backupninja. Perhaps you could just run the
rdiff-backup command by itself from a shell and post what happens?


--
Ben Escoto

Post rdiff-backup does not accept destination directory 
On Thu, 8 Sep 2005, Moritz Naumann wrote:

Warning: su: Permission denied

not sure where that's coming from, rdiff-backup won't invoke su on its
own.


I also tried removing /home/backupschizo/schizo/ and then retrying
rdiff-backup with the usage given by backupninja. However, this gave
exactly the same errors.

the destination doesn't exist and you asked it to "--remove-older-than
60D" ... i suppose we could let that slip by when the destination doesn't
exist, but for now it errors out... so "don't do that" Smile create a backup
first.


I'm also wondering how or whether it is possible to use rdiff-backup on
a different port than 22?

yeah, use --remote-schema, or use a .ssh/config entry which looks
something like:

host foohost-otherport
port NNNN
hostname foohost

then backup using foohost-otherport::/baz/bat

-dean

Post rdiff-backup does not accept destination directory 
dean gaudet schrieb:
On Thu, 8 Sep 2005, Moritz Naumann wrote:

Warning: su: Permission denied

not sure where that's coming from, rdiff-backup won't invoke su on its
own.

This seems to be a problem related to backupninja only.

I also tried removing /home/backupschizo/schizo/ and then retrying
rdiff-backup with the usage given by backupninja. However, this gave
exactly the same errors.

the destination doesn't exist and you asked it to "--remove-older-than
60D" ... i suppose we could let that slip by when the destination doesn't
exist, but for now it errors out... so "don't do that" Smile create a backup
first.

The *fatal* error was indeed gone when I ran rdiff-backup directly, and
a backup was really created (at last!).

I'm still stuck with two warnigs now, but these are not related to
rdiff-backup.

Thanks for your help (this goes to Ben, too).

I'm also wondering how or whether it is possible to use rdiff-backup on
a different port than 22?

yeah, use --remote-schema, or use a .ssh/config entry which looks
something like:

host foohost-otherport
port NNNN
hostname foohost

then backup using foohost-otherport::/baz/bat

wow, this is tricky, but I'm glad it's possible. Thanks for the heads up.

On a side note, which is slightly OT: When I sent my first email to this
mailing list, I addressed it to
rdiff-backup-users at lists d0t nongnu d0t org
instead of
rdiff-backup-users at nongnu d0t org
Instead of having my email delivered or returning it to me, the mail
server is bumping my email around on its hard disk since then, still
trying to deliver it.

Moritz

Post rdiff-backup does not accept destination directory 
dean gaudet schrieb:
On Thu, 8 Sep 2005, Moritz Naumann wrote:

Warning: su: Permission denied

not sure where that's coming from, rdiff-backup won't invoke su on its
own.

This seems to be a problem related to backupninja only.

I also tried removing /home/backupschizo/schizo/ and then retrying
rdiff-backup with the usage given by backupninja. However, this gave
exactly the same errors.

the destination doesn't exist and you asked it to "--remove-older-than
60D" ... i suppose we could let that slip by when the destination doesn't
exist, but for now it errors out... so "don't do that" Smile create a backup
first.

The *fatal* error was indeed gone when I ran rdiff-backup directly, and
a backup was really created (at last!).

I'm still stuck with two warnigs now, but these are not related to
rdiff-backup.

Thanks for your help (this goes to Ben, too).

I'm also wondering how or whether it is possible to use rdiff-backup on
a different port than 22?

yeah, use --remote-schema, or use a .ssh/config entry which looks
something like:

host foohost-otherport
port NNNN
hostname foohost

then backup using foohost-otherport::/baz/bat

wow, this is tricky, but I'm glad it's possible. Thanks for the heads up.

On a side note, which is slightly OT: When I sent my first email to this
mailing list, I addressed it to
rdiff-backup-users at lists d0t nongnu d0t org
instead of
rdiff-backup-users at nongnu d0t org
Instead of having my email delivered or returning it to me, the mail
server is bumping my email around on its hard disk since then, still
trying to deliver it.

Moritz

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