LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-26-2004, 03:43 PM   #1
Sinope
Member
 
Registered: Aug 2004
Location: Chicago
Distribution: Debian testing/unstable
Posts: 82

Rep: Reputation: 15
rsync error AND/OR dump question


I am trying to rsync my root filesystem to another computer on my LAN.

I mount the other computer's Windows shares (smbfs), mkdir a backup directory, and cd to it. Then I run:

root@ttyp0[DUMP]# rsync -av --progress /mnt/hdb1/ .

(/mnt/hdb1 is the location of the Slackware root filesystem when I boot from Knoppix.)

But I get literally hundreds of these errors:

chown "/tmpmnt/backup/DUMP/usr/include/gdbm.h" failed: Operation not permitted

Anyone know why this may be? Not every file returns the error, but sometimes large blocks of them do; other times, the errors are very sparse and infrequent. The worst areas seem to be hidden folders like /home/foo/.kde/baz/quux.quuux

...Incidentally, I'd really prefer to use dump rather than rsync.... but I'm under the impression that I have to dump to a device (such as /dev/hdb1) rather than an existing filesystem (like /backup/DUMP/). Am I correct?

Thanks a bunch!

--S
 
Old 08-26-2004, 04:22 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
That's because smbfs (or vfat, for that matter) know
nothing about Linux ownerships and rights. RSyncing
to those is not a good idea, I'd suggest tarring stuff
to one of the FS mentioned above if you want to
preserve the ownerships and permissions.


Cheers,
Tink
 
Old 08-26-2004, 05:18 PM   #3
Sinope
Member
 
Registered: Aug 2004
Location: Chicago
Distribution: Debian testing/unstable
Posts: 82

Original Poster
Rep: Reputation: 15
Okay, so should I do something like:

# tar -zcvvf rootdump.tgz /mnt/hdb1/
# mkdir /tmpmnt
# mount -t smbfs //FOO/bar/baz/quux /tmpmnt
# mv rootdump.tgz /tmpmnt/backup
# umount /tmpmnt

And then I should be free to fdisk /dev/hdb.

Any important options / steps I'm forgetting? UID, GID, and permissions are preserved by tar by default, right?

Thanks again!

--Dan
 
Old 08-26-2004, 05:31 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Quote:
Originally posted by Sinope
Okay, so should I do something like:

# tar -zcvvf rootdump.tgz /mnt/hdb1/
# mkdir /tmpmnt
# mount -t smbfs //FOO/bar/baz/quux /tmpmnt
# mv rootdump.tgz /tmpmnt/backup
# umount /tmpmnt

And then I should be free to fdisk /dev/hdb.

Any important options / steps I'm forgetting? UID, GID, and permissions are preserved by tar by default, right?

Thanks again!

--Dan
You could actually start creating the file on the
smbshare, rather than moving if afterwards ... but
that may be slower.

And yes, tar stores UID, GID, permissions and creation
time by default.


Cheers,
Tink
 
Old 08-26-2004, 05:57 PM   #5
Sinope
Member
 
Registered: Aug 2004
Location: Chicago
Distribution: Debian testing/unstable
Posts: 82

Original Poster
Rep: Reputation: 15
Thanks!!

--S
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error with rsync DJE007 Linux - Networking 3 09-20-2009 11:51 PM
rsync error irvken Linux - Software 5 04-24-2005 04:12 PM
How to forcely dump the history of user commands to the admin dump file. mcp_achindra Linux - Security 1 03-19-2004 12:04 PM
TCP DUMP question sopiaz57 Linux - Security 3 12-30-2003 07:58 AM
Error - dump logging in kprocter Linux - Networking 0 06-03-2003 09:15 AM


All times are GMT -5. The time now is 01:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration