Linux - Newbie This 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.
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.
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.
07-14-2009, 08:55 AM
#16
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
I just looked in the var/log/cron and it has the following
Jul 14 02:05:01 svr01 crond[22729]: (user) CMD (rsync -r -a -p --delete /data1/stuff /data2/stuffbackup/)
so does that mean it ran? or is it still running and just hasn't deleted anything yet maybe?
07-14-2009, 08:57 AM
#17
Senior Member
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137
Rep:
Quote:
Originally Posted by
rjo98
I just looked in the var/log/cron and it has the following
Jul 14 02:05:01 svr01 crond[22729]: (user) CMD (rsync -r -a -p --delete /data1/stuff /data2/stuffbackup/)
so does that mean it ran? or is it still running and just hasn't deleted anything yet maybe?
it ran.
is it still running?? i doubt, but check.
or
07-14-2009, 08:59 AM
#18
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
that first line returned nothing
the 2nd line returned
3752 pts/0 S 0:00 grep rsync
07-14-2009, 09:02 AM
#19
Senior Member
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137
Rep:
Quote:
Originally Posted by
rjo98
that first line returned nothing
the 2nd line returned
3752 pts/0 S 0:00 grep rsync
it is not running then.
and so shouldnt be considering the cron fires up at 0205hrs on the given days
Code:
day of week 0-7 (0 or 7 is Sun, or use names)
man 5 crontab
07-14-2009, 09:14 AM
#20
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
So should i just update the path in the crontab then and rerun it? I'm not sure why it would just stop working.
07-14-2009, 09:41 AM
#21
Senior Member
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137
Rep:
Quote:
Originally Posted by
rjo98
So should i just update the path in the crontab then and rerun it? I'm not sure why it would just stop working.
it looks to me like it is running fine.
can u do me a favour and paste the contents of crontab here
hint
07-14-2009, 09:48 AM
#22
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
just to try it I ran the rsync statement manually and got the following
opendir(stuff/music): Permission denied
IO error encountered - skipping file deletion
rsync error: some files could not be transferred (code 23) at main.c(620)
Maybe something got jacked up with permissions and that's the problem?
07-14-2009, 10:29 AM
#23
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
Actually when I try to run it as the user who has the crontab'd rsync, i get the following
rsync: writefd_unbuffered failed to write 4092 bytes: phase "send_file_entry": Broken pipe
rsync error: error in rsync protocol data stream (code 12) at io.c(515)
07-14-2009, 10:33 AM
#24
Senior Member
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137
Rep:
Quote:
Originally Posted by
rjo98
Actually when I try to run it as the user who has the crontab'd rsync, i get the following
rsync: writefd_unbuffered failed to write 4092 bytes: phase "send_file_entry": Broken pipe
rsync error: error in rsync protocol data stream (code 12) at io.c(515)
sounds like permissions problem
07-14-2009, 10:33 AM
#25
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
Putting the /usr/bin/ in front of rsync produced the same results as my last post FYI
07-14-2009, 10:38 AM
#26
Senior Member
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137
Rep:
Quote:
Originally Posted by
rjo98
Putting the /usr/bin/ in front of rsync produced the same results as my last post FYI
i said already that the command IS running.
the problem is this
Code:
opendir(stuff/music): Permission denied
make sure that user has permissions to open the stuff/music directory or run this crontab as a user that IS allowed to do this
07-14-2009, 10:39 AM
#27
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
When I look at my stuff folder i see the following
dr-xr-x--- 21 user grp 4096 Jul 9 11:07 stuff
When i look at stuffbackup i see
drwxrwxr-x 3 user grp 4096 Jun 18 09:05 stuffbackup
the crontab is under the user's crontab, so shouldn't it be ok? permissions aren't my strong suit. actually, linux isn't my strong suit, yet! haha
07-14-2009, 10:41 AM
#28
Senior Member
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137
Rep:
Quote:
Originally Posted by
rjo98
When I look at my stuff folder i see the following
dr-xr-x--- 21 user grp 4096 Jul 9 11:07 stuff
When i look at stuffbackup i see
drwxrwxr-x 3 user grp 4096 Jun 18 09:05 stuffbackup
the crontab is under the user's crontab, so shouldn't it be ok? permissions aren't my strong suit. actually, linux isn't my strong suit, yet! haha
grrr...
w is missing
should read
Code:
drwxr-x--- 21 user grp 4096 Jul 9 11:07 stuff
so..
Code:
chmod u+w stuff(/music)
07-14-2009, 10:43 AM
#29
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
so I even need to have the w for the source directory even though this user account is just used for the cron jobs?
07-14-2009, 10:49 AM
#30
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
I went to manually run it switched over to the user who has the crontab, and now its just at
opendir(stuff/music): Permission denied
IO error encountered - skipping file deletion
but didn't give that third line that it did earlier. does that mean its actually running this time since it didn't give that 3rd line?
All times are GMT -5. The time now is 06:43 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