LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 07-24-2012, 12:07 PM   #1
gorgabal
LQ Newbie
 
Registered: Feb 2012
Distribution: Debian
Posts: 14

Rep: Reputation: Disabled
Question rsync: mkdir "/home/backup" failed: Permission denied (13)


Hi,

I am trying to backup some drives mounted under /mnt to a personal backup server.

I keep getting this error:
Code:
koen@Koen-Desktop:~$ rsync -vrlzHPh --exclude='*Private' -e ssh /mnt/ koen@192.168.0.190:/home/backup
sending incremental file list
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: mkdir "/home/backup" failed: Permission denied (13)
rsync error: error in file IO (code 11) at main.c(605) [Receiver=3.0.9]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
/home/backup is the mountpoint of an external usb-drive on the server. permissions seems to be correct. (i know it is not secure, but the server will only be turned on when i make a backup, so it does not really matter)

On the server:
Code:
koen@koen-server:~$ ls -lh /home/koen/
totaal 768K
drwxrwxrwx 2 koen koen 760K jul 24 17:50 backup
drwxr-xr-x 2 koen koen 4,0K jul 23 12:12 test
koen@koen-server:~$ ls -alh /home/koen/backup/
totaal 768K
drwxrwxrwx 2 koen koen 760K jul 24 17:50 .
drwxr-xr-x 8 koen koen 4,0K jul 23 12:12 ..
any idea why this is going wrong?
 
Old 07-24-2012, 12:24 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,507
Blog Entries: 35

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
In your command you're using "/home/backup" but when you do file listings to show permissions you show "/home/koen/backup/". One of those paths are wrong.

Also check the permissions to /mnt on the client and be sure that koen has read permissions to whatever it is you're trying to sync. Perhaps what you want is...
Code:
koen@Koen-Desktop:~$ rsync -vrlzHPh --exclude='*Private' -e ssh /mnt/ koen@192.168.0.190:backup
 
Old 07-24-2012, 12:46 PM   #3
gorgabal
LQ Newbie
 
Registered: Feb 2012
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sag47 View Post
In your command you're using "/home/backup" but when you do file listings to show permissions you show "/home/koen/backup/". One of those paths are wrong.

Also check the permissions to /mnt on the client and be sure that koen has read permissions to whatever it is you're trying to sync. Perhaps what you want is...
Code:
koen@Koen-Desktop:~$ rsync -vrlzHPh --exclude='*Private' -e ssh /mnt/ koen@192.168.0.190:backup
I feel so stupid because i did not see that myself... but it works! thank you!
For anybody who made the same mistake: i used this command:
Code:
rsync -vrlzHPh --delete --exclude='*Private' -e ssh /mnt/ koen@192.168.0.190:/home/koen/backup

Last edited by gorgabal; 07-24-2012 at 12:49 PM.
 
  


Reply

Tags
backup, permission, rsync, server


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS problem: "Could not chdir to home directory /home/USER: Permission denied" sumanc Linux - Server 4 07-22-2010 05:12 PM
[SOLVED] how to simulate "mkdir -p /home/blah1/blah2/blah3" in "c" where only /home exist platinumedge Linux - Newbie 4 10-04-2009 07:28 PM
rsync mysqldatabase "Permission denied" duckdream Linux - Newbie 1 06-17-2009 03:46 AM
Failed to execute child process "ooffice" (Permission denied) Mol_Bolom Linux - Software 2 03-11-2009 05:23 PM
mkdir ../binutils-build gives me "Permission Denied"!!! matthewa Linux From Scratch 16 06-29-2005 08:00 AM


All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
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