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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-26-2004, 03:43 PM
|
#1
|
|
Member
Registered: Aug 2004
Location: Chicago
Distribution: Debian testing/unstable
Posts: 82
Rep:
|
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
|
|
|
|
08-26-2004, 04:22 PM
|
#2
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
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
|
|
|
|
08-26-2004, 05:18 PM
|
#3
|
|
Member
Registered: Aug 2004
Location: Chicago
Distribution: Debian testing/unstable
Posts: 82
Original Poster
Rep:
|
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
|
|
|
|
08-26-2004, 05:31 PM
|
#4
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
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
|
|
|
|
08-26-2004, 05:57 PM
|
#5
|
|
Member
Registered: Aug 2004
Location: Chicago
Distribution: Debian testing/unstable
Posts: 82
Original Poster
Rep:
|
Thanks!!
--S
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:51 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|