LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-19-2007, 03:54 AM   #1
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Rep: Reputation: 15
windows workstation back through rsync to linux server


Hi,

I have configured one of the windows worstations for backup through rsync onto linux Server. Now i am planning to configure all the users on our local area network for backup through rsync onto linux server by running batch file on each system from the Logon / Logoff features of the Group Policy (Win2k/XP) by running gpedit.msc. In this regard, is there a way to backup in series i.e., one after the other.

regards,

T. Saravana
 
Old 10-21-2007, 10:08 AM   #2
gerben12
LQ Newbie
 
Registered: Oct 2007
Distribution: SuSE, Redhat, Debian
Posts: 25

Rep: Reputation: 15
Yes you can:

You wil need a list of your pc's, or hostnames of your pc's like so:

windowshosts="pc1 pc2 pc3 etc etc"

Then try:

for host in $windowshosts
do
rsync $host:/this_and_that_directory
done


Where of course the rsync command would be you own rsync command, or however you make the connection.

This will rsync the files on your windowshost to linux, in the order specified in the windowshost variable, for every host defined there.



Gerben12
 
Old 10-21-2007, 11:33 PM   #3
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gerben12 View Post
Yes you can:

You wil need a list of your pc's, or hostnames of your pc's like so:

windowshosts="pc1 pc2 pc3 etc etc"

Then try:

for host in $windowshosts
do
rsync $host:/this_and_that_directory
done


Where of course the rsync command would be you own rsync command, or however you make the connection.

This will rsync the files on your windowshost to linux, in the order specified in the windowshost variable, for every host defined there.



Gerben12
Dear Mr. Gerben,

Thank you for your reply.

I could understand your reply but i do not know how to implement in dos batch file. The following is the dos batch file used to backup:

@cls
@echo off
rem Rsync job control file
c:\cygwin\bin\rsync -vrtz --password-file=c:\cygwin\secret --delete /cygdrive/c/pfimp tsaravan@192.168.0.1::modulename


In the above scenario how will i implement your solution.

regards,

T. Saravana.
 
Old 10-22-2007, 04:08 AM   #4
gerben12
LQ Newbie
 
Registered: Oct 2007
Distribution: SuSE, Redhat, Debian
Posts: 25

Rep: Reputation: 15
Well,

If you start the batch file from DOS, then you might want to try an rsh command. Which the newer windows versions will understand (check your dos for the rsh command)

Even though it is not secure it will work:
Enable access for rsh from your windows to your linux.

And then exectuce the commands from before with rsh:

rsh tsarava "for host in $windowshosts
do
rsync $host:/this_and_that_directory
done "
 
  


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
Linux Workstation Connecting to Windows Print Server? carlosinfl Linux - General 3 08-21-2007 08:10 AM
Using a Linux server to keep a user from accessing a Share in a windows workstation yohan_srilanka Linux - Networking 2 03-18-2007 03:48 AM
Problem printing to a Windows 2000 server from a Fedora Core 2 workstation RThomson Fedora 1 10-24-2004 02:59 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
Linux Server backuping Windows machine over Rsync? browny_amiga Linux - General 7 06-23-2004 10:13 AM


All times are GMT -5. The time now is 06:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration