Rsync is an open source command line tool for Unix and Windows systems that provides fast incremental file transfer to copy files and synchronize directories locally or between remote hosts. It is widely used for mirroring and backup.

learn more… | top users | synonyms

0
votes
1answer
38 views

Google Compute Engine - SSH or RSYNC without a Password

I have several Google Compute Engine (GCE) instances up and running. I have a few scripts that pull information (log files, etc) from these instances, and a few others that push up files. I would like ...
1
vote
2answers
2k views

rsync fails after server restart

Usually I use the command rsync -av --delete someroot/somedir user@remote_server_ip:/someroot/. on my development server to synchronize somedir to a remote server. It worked fine. But after the ...
0
votes
0answers
15 views

can we use unix hardlinks on a mounted windows share?

ln command can create hard links on the mounted windows share, but cp -al fails. Is this expected behaviour? I'm trying to save disk space by creating copy on write style backups using cowdancer, ...
0
votes
0answers
13 views

Windows 8 Sync as Rsync [closed]

We have this shiny new sync feature in Windows 8: http://www.itproportal.com/2013/01/04/byod-on-windows-8-syncing-your-desktop-and-data-across-multiple-devices/ I wonder if this could be changed any ...
0
votes
1answer
2k views

How to set/keep directory permissions?

I'm using CwRsync to connect from my Windows development machine to a linux webserver : rsync -avuz -e ./ssh --exclude=".svn" /cygdrive/c/xampp/htdocs/project123/ ...
0
votes
0answers
9 views

SecGenericPasswordCreate failed when trying to rsync

Hi I'm trying to rsync my Mac OSX 10.6 to a folder on a server in which I have an account. I have followed the instructions reported on www.rsync.net. I have created the public key (where as ...
0
votes
0answers
7 views

Rsync over NFS I/O error

We have two servers running CentOS 6.4. Both are NFS servers and each have shares mounted from each other. Regardless of which direction the transfer goes (upload or download) it fails after a few ...
0
votes
0answers
9 views

Troubles backing up some files from Linux system to FreeNAS using rsync

I'm using rsync to backup whole system over LAN to freeNAS server with this command: rsync -aAX --delete /* /mnt/backup ...
6
votes
3answers
13k views

rsync: failed to set times on “<dir path>”

I am trying to rsync files from one server to another but getting this error rsync: failed to set times on "/dept/intranet/dept/atest/.": Operation not permitted (1) Can someone help me why so ...
5
votes
1answer
74 views

Does Cygwin support hard links in Windows 8?

I'm working on a backup script that behaves like TimeMachine and uses RSync with --link-dest to create hardlinks to unchanged files. If I run this on a *Nix-based system, of course it works as ...
1
vote
1answer
23 views

Copying files without losing metadata in Linux

How on Linux can I copy things like music files with “Artist” and “Title” tags without losing the tags? Will rsync work? Will cp? Does either one need any specific switch?
4
votes
2answers
89 views

Behavior of rsync with file that's still being written?

If Apache is in the middle of writing a large file and an rsync cron job runs on that file, does rsync attempt to copy the file? Example Apache-1: Has file large being written to /var/www. ...
1
vote
2answers
4k views

Permission problems with rsync

I wanna do daily ssh synchronization of some of my local machines files with my server. I want to do this via rsync, since it sounds the most promising tool for this task to me. Sadly I get the ...
0
votes
2answers
21 views

What is the correct way to move a Ubuntu server from one machine to another?

Attempted this three times now and not bee successful, so was hoping someone here could point me in the right direction? I am trying to move my Ubuntu 14.04 Server from one physical machine, to ...
0
votes
2answers
4k views

rsync option --log-file seems is not working

I am using the --log-file option in rsync to see the logs. But when I tried to run, it says: --log-file unrecognized option Here is my command: #/usr/bin/rsync -av -u ...
2
votes
2answers
687 views

Copying folder from one Unix server to another, updating owners IDs

I'm using the method described here to copy a directory from one Unix server to another (both Ubuntu 14.04): rsync -aruv localfolder/ user@server:destination/ I need to keep the same owners and ...
4
votes
4answers
3k views

How to arbitrarily map user/group ownerships in rsync

I need to rsync a directory to a remote server so that all files belonging to user X and group Y on the source (local) machine are mapped to user W and group Z on the destination (remote) machine. If ...
1
vote
2answers
22 views

How to wait for 3 mints if the n/w got disconnected while copying in Rsync without failing using perl script?

I have to transfer 2-3 GB using Rsync.Everything is working fine, but my network got disconnected sometimes, and the entire process got failed. I want to retry it for the network for every 3 mints, ...
0
votes
1answer
23 views

Resume SCP download when using .pem file with rsync

I have a large file to down form a ssh server, however the connection keeps cutting out. I know that rsync can be used to resume the download however I can not find how to do this when I am using a ...
2
votes
1answer
2k views

Rsync to a WebDAV filesystem on OS X copies all files regardless of being changed or not

I am trying to sync from my (Mac) desktop to an iPad and an iPhone. MacOS X mounts WebDAV as a native file system, but syncing results in all files in my directory structure being copied again. This ...
2
votes
2answers
49 views

Copy multiple sources to multiple destinations simultaneously

Suppose I need to copy files ~/path/to/file to user@remote:/path/to/file ~/path/to/another/file to user@remote:/path/to/another/file ~/path/alternative to user@remote:/path/alternative Is there is ...
27
votes
17answers
35k views

Best way to copy millions of files between 2 servers

I have roughly around 5 million small (5-30k) files in a single directory that I would like to copy to another machine on the same gigabit network. I tried using rsync, but it would slow down to a ...
1
vote
1answer
2k views

Rsync and Windows 7

Can someone give me any tips on setting up some sort of Rsync server/client on Windows 7 to run rsync between both my web hosting server, and a backup server that I have running Ubuntu? I've tried ...
2
votes
3answers
3k views

Any faster scp or rsync?

How can I transfer a large file quickly, when I don't really require a secure connection? Often I would like to copy a large file from local machine to remote machine. The file does not already ...
1
vote
2answers
43 views

Copy ubuntu from one PC to another

I have a very weird scenerio here, I have installed some softwares on my Ubuntu machine, Now I want to move everything (including windows)to another Machine B, notice Machine has no access to Internet ...
3
votes
1answer
1k views

rsync between two local directories

I am trying to do rsync between two directories I have in two filesystems connected to the same computer. I want to do it without deleting the extra files in b. I though a simple rsync -a a/dir b/dir ...
5
votes
3answers
6k views

rsync - does it create a temp file during transfer?

As far as I can see rsync doesn't create the file in the target directory until it is complete. This must mean that it creates the file in a temp directory somewhere and copies the file into the ...
0
votes
0answers
18 views

rsync a git project to clone it for the first time?

I want to use Git to version our existing magento shop. I initiated git on the production server (which has the most up-to-date code), added all files except for several directories like cache, and ...
1
vote
0answers
32 views

rsync from Solaris to Windows (character encoding on filenames)

I'm trying to use RSYNC to sync files from a Solaris 9 (SunOS 5.9) System to a Windows Server 2008 R2 (via cygwin) There are many Files containing characters like "ä", "ö", "ü" or "ß". Which are only ...
2
votes
2answers
1k views

Rsync to multiple directories with one command?

I want to rsync my working directory to two other directories. One would destination would be for backup, another for testing it. I tried this: rsync -av --exclude='.git' source dest1,dest2 But ...
44
votes
16answers
58k views

How to synchronize the home folder between multiple computers?

I have three computers at home, and would like to have the /home/ folder tree synchronized between the three. Any files/folders (except those hidden) that are modified/added/removed in one of the ...
0
votes
1answer
2k views

How to remove/delete a vanished file?

[macek ~]$ rysnc -av /src /dest building file list ... file has vanished: "/src/file.ext" This will not generate error: [macek /src]$ rm file.ext Also strange: [macek /src]$ fi Tab The path will ...
0
votes
0answers
13 views

Is cp -au / cp --archive --update contradictory?

I want to update a directory on a backup disk with new content added to the source, and of course rsync is too slow. cp -a does the trick but is a bulldozer; cp -u should leave existing files alone. ...
8
votes
3answers
5k views

Why cwRsync doesn't work on Windows?

I'm trying to run rsync on Windows with the cwrsync port. I'm issuing the following command (note that this is just a dry run): rsync -nPaAz foouser@webxx.example.com:/home/foobar/webapps/barbaz/ ...
2
votes
1answer
28 views

What are the rsync equivalent command/s to mv /a/b /c/d?

What are the rsync equivalent command/s to mv /a/b/ /c/d/, i.e, to move a directory tree from one location to another, possibly on another file system? That is, not just copy, but delete the files ...
2
votes
2answers
4k views

How do I replicate the directory structure to a remote Linux server?

I want to replicate a complex directory structure from one Linux server to another remote server start at a certain sub-directory. I don't want the contents of the files, I just want to preserve the ...
9
votes
10answers
5k views

Something like Dropbox for local use with a NAS as storage server

I am looking for a solution to sync folder pairs between a NAS and multiple local macs. Each of the macs could edit files and the other macs should then get synced automatically. Basically my own ...
1
vote
0answers
22 views

rsnapshot or similar tool for no added size differential backup

I've currently got a backup that backs up all my files to an external hard drive, but currently I am traveling and I want to backup file changes, but without having to duplicate all the files, or ...
0
votes
1answer
64 views

Prevent rsync out of memory

I am trying to rsync 55000 jpg files in 10000 folders (from an Android phone to a Linux box). Usually, I did this: rsync -rOi --size-only --delete --timeout=60 --progress --no-perms ...
0
votes
2answers
292 views

How to intelligently sync two directories under OSX

This may seem like a simple request at first glance, but I believe it is not due to some critical subtleties I wish to keep track of. Here is the scenario: I have a directory on my home workstation, ...
0
votes
0answers
7 views

Improve accuracy of rsync's speed reporting

I am doing an rsync from a local SSD (super-fast) to a samba NAS (super-slow). When I sync (e.g.) ~400MB files, it seems to read the first entirely into memory before it does any writing, and thus I ...
0
votes
2answers
35 views

How to migrate a root filesystem to another partition from within running system?

I try to migrate a root filesystem from ext4 to another partition type (zfs) and started with a simple rsync -a --exclude=/boot --exclude=/mnt --exclude=/media --exclude=/tmp --exclude=[all zfs ...
0
votes
0answers
19 views

How to tell if a directory is completely synced by rsync?

I'm rsync'ing some directories from one machine to another, in a cronjob. Each directory is complete set of data files. On the destination machine, is there a sane way to tell if a directory is ...
0
votes
0answers
16 views

Periodic backup of changes on another disk from full backup

I am looking for a backup solution that will enable me to backup only changes to an internal disk after a full backup to an external disk. Also, this should run snapshot backups every day until the ...
0
votes
1answer
50 views

Merging two directory trees with same structure, but different contents in Unix

I have two directories with the following structure: A |_0 |_1 |_2 B |_0 |_1 |_2 each 0,1,2 directory contains unique contents. I want all of the contents to simply exist as: A |_0 |_1 |_2 Is ...
7
votes
5answers
23k views

What similar rsync tool for Windows? [closed]

What can you recommend of an application that looks the same on rsync for windows? I will be doing migration where I need to transfer data from Windows to Linux. I like the rsync on linux where you ...
2
votes
0answers
170 views

External drive has strange files “_*” appearing - culprit is maybe rsync or SMB access?

I'm using rsync to back up folders from my iMac to a WD MyBook and the process seems to leave files such as these: _0O1MN~H.MP4 _2C0X2~3.AVI _ALLYW~B.SRT _VUC69~7 The last one is the most ...
3
votes
2answers
87 views

How to use rsync to make a copy of a huge source split into two destinations?

I have 3 drives. For this purpose, we will call them A, B and C respectively. A is 2 TB B is 1 TB C is 500 GB I have already run rsync -avz -progress A B Now B is full and I want to move/copy ...
0
votes
2answers
228 views

rsync on Windows not transferring large files

I'm noticing a strange issue where rsync isn't transferring large (approx >3GB) files. I'm running MSYS rsync and I'm transferring on my LAN from my Windows box to my Linux based NAS over ssh. Most of ...
3
votes
4answers
27k views

How to configure and use rsyncd?

I have a server configured to run rsync as demon /etc/rsyncd.conf file: log file = /var/log/rsyncd.log pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock [documents] path = ...