Welcome! » Log In » Create A New Profile

permissions change at backup

Posted by Anonymous 
permissions change at backup
April 27, 2004 12:35AM
Hi List,

I am doing something wrong perhaps, please help me if you can.

I have a webserver, running RedHat 9.0, rdiff-backup 0.12.6. Backups are
(successfully!) being sent to another Linux box (Fedora Core 1) on my LAN.

The problem is the files have the ownership change when they copy to the
destination.

Here's the command I use:

rdiff-backup /www/medfordareaaa.org/ backup < at > 192.168.3.210::/mnt/test_backup

Here's a listing of some files at /www/medfordareaaa.org/ and
mnt/test_backup

-rw-r--r-- 1 medaa medaa 3258 Mar 30 20:02 saturday.html
-rw-r--r-- 1 medaa medaa 2938 Mar 30 20:02 sunday.html
-rw-r--r-- 1 medaa medaa 3692 Mar 30 20:02 thursday.html
-rw-r--r-- 1 medaa medaa 3127 Mar 30 20:02 tuesday.html
-rw-r--r-- 1 medaa medaa 3554 Mar 30 20:02 wednesday.html

==========================

-rw-r--r-- 1 backup backup 3258 Mar 30 20:02 saturday.html
-rw-r--r-- 1 backup backup 2938 Mar 30 20:02 sunday.html
-rw-r--r-- 1 backup backup 3692 Mar 30 20:02 thursday.html
-rw-r--r-- 1 backup backup 3127 Mar 30 20:02 tuesday.html
-rw-r--r-- 1 backup backup 3554 Mar 30 20:02 wednesday.html

Is the solution simple?

Did you guess I'm kinda new at this?

Thanks,
--
Jon Dowd - jondowd < at > jondowd.com
Server on the wall - http://samsara.mind.net/wall.html

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date: 4/25/2004
permissions change at backup
April 27, 2004 02:25AM
Jon Dowd wrote:

[quote]Is the solution simple?

[/quote]
Not sure, I am reading it right, but unless you write the destination as
root, you won't be able to preserve the ownership of the files I thought...

dave
permissions change at backup
April 27, 2004 04:07AM
On Tue, 27 Apr 2004 00:30:24 -0700, Jon Dowd wrote:

[quote]rdiff-backup /www/medfordareaaa.org/ backup < at > 192.168.3.210::/mnt/test_backup
[/quote]
When you work as non-root on the backup-server, then ownership will have
to be changed on the backup-server. The "backup" user on the backup-server
cannot store files having other owners.

[quote]Is the solution simple?
[/quote]
rdiff-backup remembers what the owner of the original file was on the
origin server, so if you restore the files to the origin server, then they
should regain their proper ownership. There isn't a problem, so there is
no simple solution.

--
Greetings from Troels Arvin, Copenhagen, Denmark
Sorry, only registered users may post in this forum.

Click here to login