NASLite Network Attached Storage

www.serverelements.com
Task-specific simplicity with low hardware requirements.
It is currently Mon May 05, 2025 6:08 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: rsync errors
PostPosted: Sun Jan 06, 2008 12:33 am 
Offline

Joined: Tue Feb 06, 2007 8:21 am
Posts: 25
After getting the NFS mount created on my client, I went for an rsync test drive.

I'm seeing these errors:
Code:
rsync: chown "/mnt/nas/." failed: Operation not permitted (1)
rsync: chown "/mnt/nas/test_file.nfo" failed: Operation not permitted (1)
rsync: chown "/mnt/nas/test_file.bin" failed: Operation not permitted (1)
rsync: chown "/mnt/nas/test_file.cue" failed: Operation not permitted (1)


I'm now also seeing that the files DID transfer but have a uid/gid of 98 and that they the file permissions are set to 600, original perms on these files are 644.

Part of me using NASlite requires that file details remain intact. As best I can tell, the rsync options I used should have done this.
...........and why did the file permissions change?
Is there some way I can get the uid/gid values to be setup the same as MY linux client's files.....or do I need to change the client values?? :x


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 06, 2008 8:53 pm 
Offline
Site Admin

Joined: Tue Jul 13, 2004 4:01 pm
Posts: 801
Location: ServerElements
tar/gzip your system conf files to a backup directory and then rsync that directory, all permissions will be intact when you untar.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 06, 2008 10:00 pm 
Offline

Joined: Tue Aug 10, 2004 1:50 pm
Posts: 604
Location: Texas, USA
Dude, you cant expect to set permissions on naslite. The users you have on your linux box will not be present on the nas so how do you expect to chown. That's out of context. Besides, what is the reason to preserve ownership on CD images ;-)

Everything on the nas will be UID=98/GID=98 thus avoiding permission issues. That way things are equally accessible through all protocols.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 06, 2008 11:51 pm 
Offline

Joined: Tue Feb 06, 2007 8:21 am
Posts: 25
First, thanks for the reply and the concise explanation.

My reasoning for wanting to maintain permission values is due to my wanting to possibly backup more than my own documents and such. I'm interested in maybe backing up certain system config files on my boxes and would like to have the original permissions in case I can't otherwise know what they were set for.
In light of this though, I can manage with the way the NL box is going to deal with the backed-up files. It would just be 'cool' if the files owner/group and perms were maintained. :wink:

As for the CD images... :lol: I knew I should've picked a better example to post. That image was just some mudane image that I had laying around and used for a backup test. Should've known someone bring that up :P


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 07, 2008 12:33 pm 
Offline

Joined: Tue Aug 10, 2004 1:50 pm
Posts: 604
Location: Texas, USA
Quote:
My reasoning for wanting to maintain permission values is due to my wanting to possibly backup more than my own documents and such.


In that case, use tar and move the archive to the nas. You can use something like this

Code:
tar -jpcf ARCHIVE.tar.bz2 FILES_TO_BACKUP


Then you can ftp or rsync the archive over to the nas. People often script that and let cron launch it daily for a hands-off backup.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group