LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-12-2011, 06:20 AM   #1
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Rep: Reputation: 0
Back up remote machines with Grsync


Hi all,
I would like to setup grsync to auto backup me xp desktop and win7 laptop.
I have setup samba and can access the directories on the ubuntu server.
I can see the desktop and laptop on the network from the server.
But when I try to find the machines i want to backup in source in grsync they are not there.
What should the permissions be on the windows machines?
What am I doing wrong?
Is there a very basic tutorial somewhere to help me out?
Any help appreciated.
Cheers.
 
Old 03-12-2011, 07:06 PM   #2
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Original Poster
Rep: Reputation: 0
Also I can copy from the windows machines to the ubuntu directory I have allocated for sharing with samba and can retrieve the files from the windows machine.
Hope this extra info helps.
Cheers
 
Old 03-27-2011, 04:34 AM   #3
toothandnail
Member
 
Registered: Apr 2007
Location: Oxfordshire, UK
Distribution: Arch, Sparky, Salix64
Posts: 120

Rep: Reputation: 25
Quote:
Originally Posted by rough60 View Post
Hi all,
I would like to setup grsync to auto backup me xp desktop and win7 laptop.
I have setup samba and can access the directories on the ubuntu server.
I can see the desktop and laptop on the network from the server.
But when I try to find the machines i want to backup in source in grsync they are not there.
I find it a little unclear when you say you can "access" the directories from the Ubuntu machine. For Grsync to work through Samba, the directories would need to be mounted somewhere on the Ubuntu machine's file system. There are some utilities that will allow access without providing a proper file system mount, so the first thing you need to do is make sure that the directories you want to back up are mounted on the Ubuntu machine.

I use something like this to mount shares from a Windows machine on an SME server so I can backup data on the Windows machine:

Code:
mount -t cifs //10.1.0.22/data /mnt/smb -o user=somename%somepassword
<backup commands go here>
umount /mnt/smb
You may be able to use a hostname instead of an IP address, but that depends on how machines are resolved in your local network. An IP will always work, a host name may not, depending on how the network is set up.

I'm also not too sure about using Grsync for automated backups - never tried that. IRC, it will generate a script with the commands necessary to use rsync to backup selected files, which can then be submitted to a cron job to automate the process. However, for that to work, you need to add the necessary commands to mount and unmount the Widows shares as well.
Quote:
What should the permissions be on the windows machines?
The directories you want to back up must be shared, and there must be a legitimate user on the Windows machine so that you can mount the directory as shown above.

Quote:
What am I doing wrong?
Not providing enough information....

Quote:
Is there a very basic tutorial somewhere to help me out?
Any help appreciated.
Not sure about that. You could take a look at man mount, and man rsync as well....

Paul.
 
Old 03-27-2011, 06:50 AM   #4
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks for you help paul, I have worked it out with backuppc.
Cheers
 
  


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
Minicom not working I connected linux machines back-to-back Prabhunath Linux - Networking 2 06-30-2010 04:39 AM
secure control of remote machines? babag Linux - Networking 5 11-01-2009 06:32 PM
how can i know remote machines OS? b123coder Linux - Security 2 04-06-2006 08:48 AM
remote controll xp machines via redhat 9.0 redlinux04 Linux - Networking 9 09-08-2004 01:53 PM
how to open port 25 for remote machines abd_bela Linux - Security 4 01-30-2003 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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