LinuxQuestions.org
Review your favorite Linux distribution.
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-04-2015, 09:39 AM   #16
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947

Quote:
Originally Posted by aavika View Post
thnks for rply..
yeah its good... but cron is for linux/unix. not for windows.
what should i do for windows? i mean rsync from windows command prompt
thats y i installed cygwin.. but get solution yet.. tried many times.
Is there any way rsync or copy data from windows to linux through cygwin??
cygwin has cron too
 
Old 04-05-2015, 06:47 AM   #17
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
yeah it can be possible through task schedular . i tested there is an option on windows to run .exe files.
nw i have to create .exe files for rsync through cygwin. how to make .exe files.. m confused..

yup virtual machine is a gud idea but i cant use dat.. dont have permission actually.
if u dont have any problem... or if u have any idea to create .exe file and where to run, then let me knw plzz.. its urgent
 
Old 04-05-2015, 06:51 AM   #18
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
i am sharing some links about that.

http://sourceforge.net/projects/back...syncd/3.0.9.0/
https://cygwin.com/ml/cygwin/2014-10/msg00347.html
 
Old 04-05-2015, 10:17 AM   #19
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
As I said before...

cygwin
has
cron
too

You don't need task scheduler, you don't need to create arbitrary .exe files, you don't need to do any of that
Install cron on cygwin, get it running as a service, and then use crontab -e to add a scheduled command or script like you would on any Linux system.

http://stackoverflow.com/questions/7...win-on-windows
 
Old 04-05-2015, 11:50 AM   #20
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
hey , i got it..
thank you .. thank u so much... cron is workin properly

now i have to create .exe file
 
Old 04-05-2015, 02:23 PM   #21
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 937

Rep: Reputation: 174Reputation: 174
Why?
 
Old 04-05-2015, 04:32 PM   #22
BenCollver
Rogue Class
 
Registered: Sep 2006
Location: OR, USA
Distribution: Slackware 14.1
Posts: 201
Blog Entries: 3

Rep: Reputation: 78
The last time I needed rsync on Windows, it seemed that Cygwin and related ports were too invasive. I ended up using WinSCP's scripting feature and the synchronize command. It used more bandwidth than rsync, but it was easy, reliable, and stable.
 
Old 04-06-2015, 02:52 AM   #23
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
rsync should run as a service in windows, should be run on background automatically through cygwin.
i have WinSCP but have to do without..

is there any way to edit or read .exe file? so that i can run rsync.exe accordingly from cygwin. If its not possible then have to create file which vil run under cygwin
 
Old 04-06-2015, 03:43 AM   #24
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
Cool

Quote:
Originally Posted by aavika View Post
thnk u all... JeremyBoden, pan64, veerain

i want to copy my data ( C or D drive) from windows client to linux server, nd run rsync from windows only.
Currently am using cygwin software which is installed on windows.
Actually want to run rsync silently or quietly.. is this possible??
have you tried WinSCP?

You can just drag and drop to copy files between Linux and Windows.

http://winscp.net/eng/download.php

I'm not sure though whether rsync will be faster than WinSCP in terms of speed, but WinSCP is handy if you want to copy small files.
 
Old 04-06-2015, 04:19 AM   #25
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
thank u for the reply
sory for the inconvience
yeah i know.. can be possible via WinSCP
but i cannot use that because i have an order to use cygwin only.
and automatically rsync run via cygwin in background process without showing gui. so that at the time of rsyncing noone shld knows, we r using cygwin.
cygwin is a software used to run linux commands from windows.

i searched a lottt... found some links, related to this..
https://cygwin.com/ml/cygwin/2003-02/msg01577.html
http://www.evbackup.com/support-rsyn...ng-automation/
i realised, making a shell script file may b easier.

how to do? anyone knws plzz let me know
 
Old 04-06-2015, 11:05 AM   #26
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by aavika View Post
i searched a lottt... found some links, related to this..
https://cygwin.com/ml/cygwin/2003-02/msg01577.html
http://www.evbackup.com/support-rsyn...ng-automation/
i realised, making a shell script file may b easier.

how to do? anyone knws plzz let me know
Stick your command in a file, give it execute permissions, and then run that file from cron. Or if you want, just run the rsync command directly from cron.

Once you have the crontab installed and running, you can IGNORE that you're using cygwin at all. Just look for any Linux rsync/cron guide online and follow it.
 
Old 04-07-2015, 02:22 AM   #27
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
thnk u..

for rsync, what should i write in a file? is it ok if i write command:
rsync -av "/cygdrive/c/vjtest" "root@192.168.1.149:/home/vbox/2012/"

? only.. or i have to write some other commmands too..
i created a file in .sh format. is it ok??
 
Old 04-07-2015, 02:42 AM   #28
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
.sh is not a format, but an extension. Linux and cygwin does not really care about that, it is used by humans to recognize file types easier (Windows uses extension). So using .sh is ok, that is the usual way.
You need to check the rsync command yourself if that works as expected. You will need to write the same command into your script/file (as it was tested in a cygwin windows).
 
Old 04-07-2015, 02:50 AM   #29
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
yeah extension..:P
that rsync command is working properly. checked 2-3 times in cygwin terminal

i am writing only: rsync -av "/cygdrive/c/vjtest" "root@192.168.1.149:/home/vbox/2012/"

in backup.sh file which is located in C:\backup.sh

is it okay???
 
Old 04-07-2015, 02:54 AM   #30
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
from my side yes. You need to make that script executable (chmod +x <script>) and you can test it too. I suggest you to put it into another directory, inside the cygwin structure, but it should work in that dir too.
 
  


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


All times are GMT -5. The time now is 08:34 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