Hello Guys,
I have been making a script to automatically rsync about 40 different directories to 40 other different directories. I finally got all the syntax and everything worked out but I'm having some permissions errors pop up when I try to do the rsync.
Here is my bash script:
http://pastebin.com/uph49vHd
The error I get when I run it is:
Code:
[root@KISKA Tech]# ./websync.sh
doing some cleanup
writing directory names to kiskasys.txt
I am now nusak at foo.bar.net
just wrote directory names to websys.txt
websys.txt 100% 244 0.2KB/s 00:00
Just coppied websys.txt from webserver to KISKA.nusalaska.com
rsync: Failed to exec /nusdata/staff/NUS/NUS/Systems/101 greenbrook/: Permission denied (13)
rsync error: error in IPC code (code 14) at pipe.c(84) [sender=3.0.6]
rsync: writefd_unbuffered failed to write 6 bytes to fd 4 [sender]: Broken pipe (32)
rsync error: error in rsync protocol data stream (code 12) at io.c(1525) [sender=3.0.6]
I ran the script as root so I would figure that the local file would have no permissions issues... but obviously I am missing something.
Any help would be appreciated!