Forgive me if this has been addressed here before. We have a remote office that we need to backup to our NAS. We have a site to site certificate VPN. The remote site has over 51gb that needs to be backed up to our NAS over that VPN. I have tried this command: rsync --verbose --progress --stats --compress --recursive --times --perms --links --delete /Share/* / smb://192.168.123.6/Backup/EdensLandCorp and it just sits there and appears to do nothing. Does rsync make a tarball first and then put it where it is told to put it or does it just copy the files/folders over? Maybe it is the smb://xx.xx.xx.xx/whatever that is breaking it......the bottom line is i need to copy/rsync a directory to a remote server through a VPN. How is this accomplished?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rsync does not communicate via smb. It either communicates to its own service (rsyncd) or to another rsync command over ssh (like scp does). On 04/11/12 17:31, Chris Arnold wrote:> Forgive me if this has been addressed here before. We have a remote > office that we need to backup to our NAS. We have a site to site > certificate VPN. The remote site has over 51gb that needs to be > backed up to our NAS over that VPN. I have tried this command: > rsync --verbose --progress --stats --compress --recursive --times > --perms --links --delete /Share/* / > smb://192.168.123.6/Backup/EdensLandCorp > > and it just sits there and appears to do nothing. Does rsync make a > tarball first and then put it where it is told to put it or does it > just copy the files/folders over? Maybe it is the > smb://xx.xx.xx.xx/whatever that is breaking it......the bottom line > is i need to copy/rsync a directory to a remote server through a > VPN. How is this accomplished?- -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+F+OQACgkQVKC1jlbQAQefiACcD8EPoeIiqzd2eDyWkgtsvoMW QYAAnAlYJaHJ17fdjGr+PU0OSmf3amEi =BNfJ -----END PGP SIGNATURE-----
Hi, I don't think rsync natively supports samba shared volumes. You should probably start by mounting your shared volume, using mount -t smbfs, then sync. See http://users.softlab.ece.ntua.gr/~ttsiod/backup.html Greg On Wed, Apr 11, 2012 at 11:31 PM, Chris Arnold <carnold at electrichendrix.com>wrote:> Forgive me if this has been addressed here before. We have a remote office > that we need to backup to our NAS. We have a site to site certificate VPN. > The remote site has over 51gb that needs to be backed up to our NAS over > that VPN. I have tried this command: > rsync --verbose --progress --stats --compress --recursive --times --perms > --links --delete /Share/* / smb://192.168.123.6/Backup/EdensLandCorp > > and it just sits there and appears to do nothing. Does rsync make a > tarball first and then put it where it is told to put it or does it just > copy the files/folders over? Maybe it is the smb://xx.xx.xx.xx/whatever > that is breaking it......the bottom line is i need to copy/rsync a > directory to a remote server through a VPN. How is this accomplished? > -- > Please use reply-all for most replies to avoid omitting the mailing list. > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20120411/408b101e/attachment.html>
I have to rsync files between a pair of NAS over a WAN, and since each NAS has an administrative server, we do the rsync 'server-to-server' using SSH. -----Original Message----- From: rsync-bounces at lists.samba.org [mailto:rsync-bounces at lists.samba.org] On Behalf Of Chris Arnold Sent: Wednesday, April 11, 2012 5:31 PM To: rsync at lists.samba.org Subject: Rsync to a Remote NAS Forgive me if this has been addressed here before. We have a remote office that we need to backup to our NAS. We have a site to site certificate VPN. The remote site has over 51gb that needs to be backed up to our NAS over that VPN. I have tried this command: rsync --verbose --progress --stats --compress --recursive --times --perms --links --delete /Share/* / smb://192.168.123.6/Backup/EdensLandCorp and it just sits there and appears to do nothing. Does rsync make a tarball first and then put it where it is told to put it or does it just copy the files/folders over? Maybe it is the smb://xx.xx.xx.xx/whatever that is breaking it......the bottom line is i need to copy/rsync a directory to a remote server through a VPN. How is this accomplished? -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
This is like mounting the remote drive via samba and then do a sync, this is like doing a normal copy job without the deltra transfer benefits of rsync. If at all possible you should run an rsync daemon on the NAS box and then run the rsync command on the other side of the VPN. rsync uses port 873 by default. Or use an extra box connected via LAN (not vpn) to mount the NAS and run the rsync daemon. If the NAS is 192.168.123.6 your command on the other side would be: rsync --verbose --progress --stats --compress --recursive --times --perms --links --delete /Share/ 192.168.123.6::Backup/EdensLandCorp You can also turn it around to let the NAS poll the backup, you need to run an rsync server on the main site then, but only a few officially support it. regards, Joachim Otahal Chris Arnold schrieb:> Forgive me if this has been addressed here before. We have a remote office that we need to backup to our NAS. We have a site to site certificate VPN. The remote site has over 51gb that needs to be backed up to our NAS over that VPN. I have tried this command: > rsync --verbose --progress --stats --compress --recursive --times --perms --links --delete /Share/* / smb://192.168.123.6/Backup/EdensLandCorp > > and it just sits there and appears to do nothing. Does rsync make a tarball first and then put it where it is told to put it or does it just copy the files/folders over? Maybe it is the smb://xx.xx.xx.xx/whatever that is breaking it......the bottom line is i need to copy/rsync a directory to a remote server through a VPN. How is this accomplished?
Are you saying the current way we are doing it does NOT support "incremental" backups after the first full backup? One of the NAS devices is a readynas duo rnd2100. In the backup section of the gui, it does say backup:remote::rsync but when i select that and fill in the info and click test connection, it does not connect. Does this one support the rsync daemon? ----- Original Message ----- From: "Joachim Otahal (privat)" <Jou at gmx.net> To: "Chris Arnold" <carnold at electrichendrix.com> Cc: rsync at lists.samba.org Sent: Thursday, April 12, 2012 3:28:42 PM Subject: Re: Rsync to a Remote NAS This is like mounting the remote drive via samba and then do a sync, this is like doing a normal copy job without the deltra transfer benefits of rsync. If at all possible you should run an rsync daemon on the NAS box and then run the rsync command on the other side of the VPN. rsync uses port 873 by default. Or use an extra box connected via LAN (not vpn) to mount the NAS and run the rsync daemon. If the NAS is 192.168.123.6 your command on the other side would be: rsync --verbose --progress --stats --compress --recursive --times --perms --links --delete /Share/ 192.168.123.6::Backup/EdensLandCorp You can also turn it around to let the NAS poll the backup, you need to run an rsync server on the main site then, but only a few officially support it. regards, Joachim Otahal Chris Arnold schrieb:> Forgive me if this has been addressed here before. We have a remote office that we need to backup to our NAS. We have a site to site certificate VPN. The remote site has over 51gb that needs to be backed up to our NAS over that VPN. I have tried this command: > rsync --verbose --progress --stats --compress --recursive --times --perms --links --delete /Share/* / smb://192.168.123.6/Backup/EdensLandCorp > > and it just sits there and appears to do nothing. Does rsync make a tarball first and then put it where it is told to put it or does it just copy the files/folders over? Maybe it is the smb://xx.xx.xx.xx/whatever that is breaking it......the bottom line is i need to copy/rsync a directory to a remote server through a VPN. How is this accomplished?
If the NAS is 192.168.123.6 your command on the other side would be: rsync --verbose --progress --stats --compress --recursive --times --perms --links --delete /Share/ 192.168.123.6::Backup/EdensLandCorp I run this command and get failed to connect to 192.168.123.6: Connection refused. I shouldnt have to open any ports because this is coming across the VPN, right? Chris Arnold schrieb:> Forgive me if this has been addressed here before. We have a remote office that we need to backup to our NAS. We have a site to site certificate VPN. The remote site has over 51gb that needs to be backed up to our NAS over that VPN. I have tried this command: > rsync --verbose --progress --stats --compress --recursive --times --perms --links --delete /Share/* / smb://192.168.123.6/Backup/EdensLandCorp > > and it just sits there and appears to do nothing. Does rsync make a tarball first and then put it where it is told to put it or does it just copy the files/folders over? Maybe it is the smb://xx.xx.xx.xx/whatever that is breaking it......the bottom line is i need to copy/rsync a directory to a remote server through a VPN. How is this accomplished?