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

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

Re: [rdiff-backup-users] Restoring a folder. Uid not correct


From: Fran Firman
Subject: Re: [rdiff-backup-users] Restoring a folder. Uid not correct
Date: Tue, 01 Jun 2004 08:40:41 +1200

Here is an example that works, or doesn't work depending on your point
of view... :)


In a test  (called test) folder create four files

mkdir test

touch file1
touch file2
touch file3
touch file4

Change the ownership of the files to ones that don't exist on the
system.

chown 2000:2000 file1 
chown 2002:2002 file2
chown 2003:2003 file3
chown 2004:2004 file4

Now backup the files with rdiff-backup, as the user root.

su - 
rdiff-backup /home/fran/test test-backup

Now restore the files to a new folder

rdiff-backup -r now test-backup /home/fran/test/tt

cd /home/fran/test/tt

ls -l 

and the files have

address@hidden:~/t/tt$ ls -l
total 0
-rw-r--r--    1 2000     2000            0 2004-06-01 08:33 file1
-rw-r--r--    1 2000     2000            0 2004-06-01 08:33 file2
-rw-r--r--    1 2000     2000            0 2004-06-01 08:33 file3
-rw-r--r--    1 2000     2000            0 2004-06-01 08:33 file4

The wrong uid's..
F.



On Mon, 2004-05-31 at 13:14, Ben Escoto wrote:
> >>>>> Fran Firman <address@hidden>
> >>>>> wrote the following on Mon, 31 May 2004 14:08:06 +1200
> 
> > I have found a problem when I was doing a restore, regarding the uid and
> > gid information.
> 
> Hmm, what version are you running, and what are the OSes and
> filesystems on both sides?  Is there anything unusual about your
> system?  Any warnings or strange messages?
> 
> You're restoring as root right?  Just checking.
> 
> > When I restored the home folder with 4 users, as /home to /home, the
> > first user had the correct uid's, and the others all had the same uid's
> > as the first user.
> 
> It would be super-helpful if this mistake were replicable on a toy
> example: say a directory with just two files in it, one owned by one
> user and one owned by another user.





reply via email to

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