Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been reading rsync man pages as I'd like to do a similar thing (to an ftp account on my NAS)
According to the man pages, however, rsync must be installed on both the source and destination machines,
which makes it impossible to use it with NAS, doesn't it?
I've been playing with an Iomega NAS that runs Windows file sharing. Currently I mount the NAS share on a local mount point and then use rsync as if it were syncing two local directories.
Code:
mount -t smbfs -o username=whatever,password=whateverpass //192.168.1.4/public /mnt/iomega.public
rsync /home/whatever/music /mnt/iomega.public/music
I haven't got it working reliably yet. Some of the directories don't get copied to the NAS and I get weird errors about directories that don't exist. I wrote this FWIW. If it helps point anyone in a good direction then maybe we can figure this out together in this thread.
Last edited by stress_junkie; 07-05-2008 at 02:44 PM.
I've been playing with an Iomega NAS that runs Windows file sharing. Currently I mount the NAS share on a local mount point and then use rsync as if it were syncing two local directories.
Code:
mount -t smbfs -o username=whatever,password=whateverpass //192.168.1.4/public /mnt/iomega.public
rsync /home/whatever/music /mnt/iomega.public/music
I haven't got it working reliably yet. Some of the directories don't get copied to the NAS and I get weird errors about directories that don't exist. I wrote this FWIW. If it helps point anyone in a good direction then maybe we can figure this out together in this thread.
You may check that the file names do not have spaces in them. if they do thier is some extra cmd line things you need to add to the rsync statement, i got it wrote down somewhere ill post them when i find them.
Using that command I got it to copy some files finally.
(1)
rsync: chown "/mnt/buffalo/test/nagios/module" failed: Operation not permitted (1)
rsync: chown "/mnt/buffalo/test/nagios/sample-config" failed: Operation not permitted (1)
rsync: chown "/mnt/buffalo/test/nagios/sample-config/template-object" failed: Operation not permitted (1)
rsync: chown "/mnt/buffalo/test/nagios/xdata" failed: Operation not permitted (1)
sent 7417870 bytes received 12978 bytes 316206.30 bytes/sec
total size is 19485183 speedup is 2.62
rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9]
Now i have alot of files that did not copy, im not sure how to fix it....seems like it is trying to chown the files/folders on the buffalo but does not have permission...I have permission to mkdir but not to chown...
hmmm maybe im not using the admin account on the buffalo, ill look at it tomorrow and post back later...i imagine that is the problem...
mount -t smbfs -o username=root //my250gig/share /mnt/buffalo
Password:
16799: session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
SMB connection failed
I set the admin password on my buffalo in the web admin, and this is what happens when i try to mount it using it.
If i dont put a password in it will work fine, but when running rsync or rsnapshot it will give me chown messages....
looks like if the source file was user 501 and group 501, it sets the user and group on the buffalo to root instead... i think thats what the problem is, it cant set the permissions like it is on the linux system so it sets it all to root. It looks like all the files are in the backup...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.