LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-07-2015, 05:34 AM   #46
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,879

Rep: Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910

did you check if cron was running?
 
Old 04-07-2015, 05:42 AM   #47
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
crontab comes under the cygwin..
for crontab ,cywin should b continously running??? is there an issue
 
Old 04-07-2015, 05:53 AM   #48
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,879

Rep: Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910
see post #42 http://www.linuxquestions.org/questi...ml#post5343710
 
Old 04-07-2015, 05:53 AM   #49
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
i typed in cygwin terminal: cron-config

output:
The cron daemon can run as a service or as a job. The latter is not recommended.
Cron is already installed as a service under account LocalSystem.
Installation path: C:\cygwin is not for this instance of Cygwin.
You must remove and reinstall the service to run in this instance.
Do you want to remove or reinstall it? (yes/no)

i typed: net start cron

output:
System error 2 has occurred.

The system cannot find the file specified.

what should i do??? i dont knw what is happening
 
Old 04-07-2015, 05:57 AM   #50
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,879

Rep: Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910
you can follow the links I gave you. You used c:\cygwin64 as root directory, therefore c:\cygwin will not work in your environment.
You need to remove the misconfigured service first by: cygrunsrv -R SERVICE_NAME
 
Old 04-07-2015, 06:17 AM   #51
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
cron-config

The cron daemon can run as a service or as a job. The latter is not recommended.
Cron is already installed as a service under account LocalSystem.
Do you want to remove or reinstall it? (yes/no) no
Error: cannot find cygwin username for account LocalSystem
Remove the service and reinstall it.

net start cron

The requested service has already been started.

More help is available by typing NET HELPMSG 2182.
 
Old 04-08-2015, 10:14 AM   #52
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
Hello all,
my problem solved, thank you all for the support...

Actually, location of the script file should be C:\cygwin64\home\Username\scripts\backup.sh instead of C:\cygwin64\bin\backup.sh

and in crontab : */1 * * * * sh /cygdrive/c/cygwin64/home/Username/scripts/backup.sh
so that rsync command is executed every 1 minute...

once again, thanks...
 
Old 04-08-2015, 10:43 AM   #53
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,559

Rep: Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127
BTW - you don't need the "*/1" if you want it to execute every minute, just use "*".
 
Old 04-08-2015, 10:47 AM   #54
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,186

Rep: Reputation: 243Reputation: 243Reputation: 243
The first time the script runs it has to backup everything.
Depending on how much this is, it could take longer than a minute...

Subsequent runs ought to be very much faster.
 
Old 04-09-2015, 01:20 AM   #55
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
yeah.. i got it.. i can write "*" instead of "*/1" for 1 minute
ya.. right, its depend on the size of data..
thank u very much
 
  


Reply


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
Options? rsync from Windows 7 to Linux haertig Linux - Software 1 03-19-2013 09:23 PM
rsync windows linux zerocool22 Linux - Server 4 05-23-2008 12:18 PM
How to rsync over ssh from Windows to Linux hareeshvv Linux - Networking 8 07-06-2006 11:11 PM
Rsync Backup From Windows To Linux Problem sectrean Linux - Networking 0 10-18-2004 05:11 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:51 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration