LinuxQuestions.org
Help answer threads with 0 replies.
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 09-27-2016, 04:10 PM   #1
riahc3
Member
 
Registered: Dec 2002
Posts: 176

Rep: Reputation: 1
Would this script work for a rsync from a Windows to a Synology over a VPN?


This would either run on the remote Synology or a local third Linux machine.

#This is a local server Ill backup data from
//192.168.1.1/e$ /mnt/windowsdata cifs ro,username=domain\domainuser,password=mypass,iocharset=utf8,file_mode=0444,dir_mode=0444 0 0
#This Synology server is remote but appears as local because it is connected to a VPN server making it appear like it is in our network
//192.168.1.89/share /mnt/destination cifs rw,username=admin,password=anotherpass,iocharset=utf8,file_mode=0777,dir_mode=07*​77 0 0
rsync -vrzh /mnt/windowsdata/ /mnt/destination
umount /mnt/windowsdata -l
umount /mnt/destination -l

Would this work?
 
  


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
PPTP VPN not working while at work. What other types of VPN should I try? Salzgablah Linux - Server 0 12-25-2013 12:48 AM
Trouble automating rsync Mac OS 10.5 to Synology (BusyBox) Server tenraek Linux - Server 0 03-15-2009 03:38 PM
Rsync over VPN Pete89 Linux - Newbie 7 10-25-2007 09:11 AM
Rsync through a VPN/SSH tunnel... Akonbobot Linux - Desktop 1 10-11-2006 12:26 AM
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 06:15 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