Questions tagged [rsync]

GENERAL RSYNC SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. rsync can copy files locally, over ssh or rsh remote shell services, or with a remote rsync daemon. Files can be incrementally updated and rsync provides for file-size and last-modified time update checks. rsync runs on POSIX systems including Linux, BSD, Unix, and Windows (via Cygwin).

Rsync is a file copy utility which runs on POSIX systems, including Linux, BSD, Unix, and Windows (via Cygwin).

rsync is capable of copying files locally and remotely, using ssh or rsh services as transport, or to a remote rsync daemon (non-secure way). rsync uses a delta-transfer algorithm for transferring files. Files can be incrementally updated based on source/destination differences in file-size and/or timestamps, or differences in checksums.

rsync is very suitable for low-bandwidth and high-latency networks as it transfers only the changed part of files.

rsync was developed by Andrew Tridgell and currently is maintained by Wayne Davison.

For more details see http://rsync.samba.org/

2462 questions
135
votes
8 answers

How to rsync only a specific list of files?

I've about 50 or so files in various sub-directories that I'd like to push to a remote server. I figured rsync would be able to do this for me using the --include-from option. Without the --exclude="*" option, all the files in the directory are…
Dan Steele
  • 1,644
  • 3
  • 13
  • 13
133
votes
11 answers

Speed up rsync with Simultaneous/Concurrent File Transfers?

We need to transfer 15TB of data from one server to another as fast as we can. We're currently using rsync but we're only getting speeds of around 150Mb/s, when our network is capable of 900+Mb/s (tested with iperf). I've done tests of the disks,…
BT643
  • 3,495
  • 5
  • 34
  • 55
129
votes
5 answers

How to RSYNC a single file?

Currently i only RSync-ing the Directories as like: * * * * * rsync -avz /var/www/public_html/images root@:/var/www/public_html So how do i rsync one single file like, /var/www/public_html/.htaccess ?
夏期劇場
  • 17,821
  • 44
  • 135
  • 217
119
votes
8 answers

How do I synchronize in both directions?

I want to use rsync to synchronize two directories in both directions. I refer to synchronization in classical sense (not how it is meant in rsync manuals): I want to update the directories in both directions, depending on which of them is…
java.is.for.desktop
  • 10,748
  • 12
  • 69
  • 103
116
votes
11 answers

Copy or rsync command

The following command is working as expected... cp -ur /home/abc/* /mnt/windowsabc/ Does rsync has any advantage over it? Is there a better way to keep to backup folder in sync every 24 hours?
shantanuo
  • 31,689
  • 78
  • 245
  • 403
106
votes
6 answers

Symbolic links and synced folders in Vagrant

I want to use Vagrant to provide a common development environment to my team. The hosts are completely different: Some use OS X, some Linux, and some Windows. Some use VMware, some use VirtualBox. Inside of the VM we want to run Linux. So far,…
Golo Roden
  • 140,679
  • 96
  • 298
  • 425
105
votes
10 answers

Two way sync with rsync

I have a folder a/ and a remote folder A/. I now run something like this on a Makefile: get-music: rsync -avzru server:/media/10001/music/ /media/Incoming/music/ put-music: rsync -avzru /media/Incoming/music/…
mwm
  • 1,897
  • 2
  • 15
  • 21
100
votes
6 answers

rsync not synchronizing .htaccess file

I am trying to rsync directory A of server1 with directory B of server2. Sitting in the directory A of server1, I ran the following commands. rsync -av * server2::sharename/B but the interesting thing is, it synchronizes all files and directories…
Sangfroid
  • 1,323
  • 3
  • 9
  • 5
99
votes
3 answers

Using Rsync include and exclude options to include directory and file by pattern

I'm having problems getting my rsync syntax right and I'm wondering if my scenario can actually be handled with rsync. First, I've confirmed that rsync is working just fine between my local host and my remote host. Doing a straight sync on a…
Sheldon Chang
  • 1,215
  • 1
  • 9
  • 9
96
votes
8 answers

rsync error: some files could not be transferred (code 23) Command PhaseScriptExecution failed with a nonzero exit code

I tried to connect flutter project to my iPhone, but suddenly this error showed up after adding Google AdMob. I've already tried keychain solution(Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code), pod deintegrate, pod…
RyanIdea
  • 1,289
  • 2
  • 8
  • 16
79
votes
5 answers

Rsync to Amazon Ec2 Instance

I have an EC2 instance running and I am able to SSH into it. However, when I try to rsync, it gives me the error Permission denied (publickey). The command I'm using is: rsync -avL --progress -e ssh -i ~/mykeypair.pem ~/Sites/my_site/*…
a53-416
  • 3,585
  • 6
  • 34
  • 44
78
votes
8 answers

Vagrant with VirtualBox on Windows10: "Rsync" could not be found on your PATH

I've used Vagrant for a while on a windows 7 system. Now I've a new PC with windows 10. I installed Oracle Virtual Box and Vagrant and I try to start a machine with the command vagrant up. The Vagrantfile is the same file that I used on my windows 7…
Stefan H
  • 1,063
  • 1
  • 10
  • 18
78
votes
18 answers

rsync - mkstemp failed: Permission denied (13)

I have the following setup to periodically rsync files from server A to server B. Server B has the rsync daemon running with the following configuration: read only = false use chroot = false max connections = 4 syslog facility = local5 log file =…
user320487
75
votes
4 answers

Slashes and the rsync command

I am trying to do something along the same lines as what is asked in this question: How do I synchronize in both directions? However, what I can't figure out is whether or not I should add slashes to the end of the file path. Basically I'm trying to…
cadams
  • 1,299
  • 1
  • 11
  • 21
75
votes
14 answers

rsync suddenly hanging indefinitely during transfers

For the past few years, I have been using an rsync one-liner to back up important folders on my Mac Mini desktop (OSX 10.9, 2.5 GHz i5, 4 GB RAM) to a FreeNAS box (0.7.2 Sabanda revision 5266, Pentium D 2.66 GHz, 822MiB RAM [reported by the system,…
Matthew DeNardo
  • 861
  • 1
  • 6
  • 6