LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 04:34 AM   #46
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321

did you check if cron was running?
 
Old 04-07-2015, 04: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, 04:53 AM   #48
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
see post #42 http://www.linuxquestions.org/questi...ml#post5343710
 
Old 04-07-2015, 04: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, 04:57 AM   #50
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
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, 05: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, 09: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, 09:43 AM   #53
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

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

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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, 12: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



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

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

All times are GMT -5. The time now is 02:29 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
Open Source Consulting | Domain Registration