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
0answers
9 views

rsync --exclude option with wildcards and slashes

I have an rsync command that looks like this: /usr/bin/rsync -e ssh -prLtvz --ignore-errors --progress --exclude "/*/*/*" --stats --chmod=u+rwx,g+rwx,o+rx /foo/bar/baz targetloc:/root_path/dest ...
2
votes
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 ...
2
votes
2answers
670 views

How to rsync via gateway ssh?

I want to rsync my local files with a backup which I have on a server which allows access from where I am right now only via a gateway. So I came up with the following rsync -avz -r --stats ...
1
vote
2answers
2k views

Is there an rsync alternative, that stores compressed and encrypted?

I'm looking for a suitable off-site backup / file synchronization solution. Both local client and remote server run linux. Storage space on the server is limited, bandwidth between client and server ...
6
votes
3answers
5k views

RSYNC Does Not Delete Source Directories

I'm using rsync to essential fetch files off a server, then delete the files from the server once I have them locally. The full command I'm running is below. This does successfully delete the files ...
0
votes
0answers
11 views

rsyncd daemon - how to minimize logged information?

I backup my synology NAS to a linux Debian server that runs rsyncd daemon. A typical backup session will write hundreds of thousands useless messages (sample below) to the daemon log file. Q: How can ...
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
20 views

Rsync with extended attributes

I'm using command rsync -aAX --delete /src/ /dest/ on linux to backup data from samba share to external disk. When rsync backup symlinks for the first time everything goes smoothly, but when I run the ...
0
votes
0answers
29 views

How to do a nightly Rsync from Windows Client to Ubuntu Server with Cygwin and Task Scheduler?

I do this with the OS X machines in the office but I wish to do this with the Windows PC too. On OS X, I created SSH keys and cron jobs to rsync certain folders to specific user folders on our Ubuntu ...
0
votes
1answer
119 views

How to output file sizes in human-readable format in an rsync logfile

I know that the -h option outputs file sizes in human-readable format when, for example, displaying the transfer progress with --progress. But is it possible to get this same file size formatting in ...
1
vote
2answers
5k 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
0answers
7 views

running rsync from vmware player vm using NAT to new server

I have been searching for days. I am trying to run rsync to a new server from a guest VMware Player VM using Ubuntu 14.04 NAT on the host Win7 pro server. I cannot setup a shell connections to the new ...
1
vote
2answers
596 views

How to back up server with rsync, preserving ownership/permissions without root login

I am setting up a backup server on which I want to run rsync over ssh to backup content on other servers every night. I would like to set up ssh keys to make it password-less, but I want to preserve ...
1
vote
4answers
3k views

Rsync root files between systems without specifying password

This seems very tricky to me. I've set up my two systems so that I can rsync files between them as me, without specifying password. Now the the problem is to rsync files that belong to root. On both ...
0
votes
1answer
24 views

How to estimate the time needed for transferring files between internal and external drives?

My laptop usb port is usb 2.0. my external hard drive is usb 3.0. Wikipedia says Due to bus access constraints, the effective throughput of the High Speed signaling rate is limited to 35 MB/s or ...
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 ...
1
vote
1answer
349 views

File inconsistency… doesn't appear in 'ls -a' but it exists?

I’ve run rsync (3.0.6) on Mac OS X 10.6 (Snow Leopard )to backup a folder form an external hard drive (FAT32) to another external hard disk (FAT32). Somehow certain files (and at times they change!) ...
11
votes
2answers
11k views

rsync --remove-source-files deletes source files one by one or after rsync completes?

I have a rsync command in an application that copies the contents of a folder to another machine. I have the option --remove-source-files because I'm only interested in having the files on the ...
12
votes
4answers
10k views

How to do rsync-like encrypted backup?

I want to save a backup of my data on a remote server, but never want the backup server to see the data unencrypted. Editing a single file and backing up should not result in everything being ...
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 ...
1
vote
2answers
3k views

rsync permissioning?

I have run the command sudo rsync --chmod=a+rwx testfile testfile2 This creates a file testfile2 but the permissions on it are 755 (-rwxr-xr-x) Can someone explain how to make it so the ...
3
votes
2answers
156 views

Differential copy from Windows to Linux

Is there any way to do differential copies of a directory from Windows to Linux over ssh, sftp, scp, or similar? Preferably not rsync since they are all cygwin based and force you to use the ...
0
votes
0answers
10 views

scp/rsync through a SSH gateway using authorized_keys

My Network layout is similar to the diagram in this post (SCP through SSH gateway connection). With respect to the answer by Ash Vince in that post, I am would like to know if it is possible to ...
1
vote
1answer
72 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 ...
16
votes
3answers
18k views

rsync file permissions on windows

I have an rsync service that syncs files from remote machine to a machine that drops them on a network drive. I need the copied files to take on the native permissions of the destination folder. ...
4
votes
1answer
2k views

Unicode Characters in Ubuntu Server

I recently migrated from Ubuntu Desktop 13.04 to Ubuntu Server 13.10 and now my filesystem doesn't seem to support unicode characters. I use rsync to backup/sync files and it shows the proper ...
1
vote
1answer
17 views

How can I quickly compare two directories skipping hard linked files that exist in both directories in linux

I have two directories that I would like to compare. The first directory contains an rsync backup of many thousands of folders and files. The second directory contains hard links to all of the files ...
1
vote
2answers
14k views

rsync cron job with a password?

I want to set up an rsync command as a cron job, so I need to find a way to supply my server password automatically to rsync. Currently I have a shell script that looks like this: #!/bin/sh rsync ...
0
votes
1answer
46 views

How to disable rate limit on SSH connections in UFW?

I've got a dev server to which I constantly sync my code using rsync. To secure the dev server a bit more I now activated UFW, which seems to work fine. The problem is that it works a bit too well, ...
0
votes
0answers
8 views

Bash/Cygwin synchronize two directories

I have small problem with synchronization of two git repositories. In first directory for example localRepo is only two subdirectories: localRepo/ dirA/ dirA1/ ...
0
votes
3answers
944 views

Update a bootable OS X drive clone with rsync?

The question: is it possible to keep a boot-able backup drive clone of OS X updated with rsync? If rsync is not a viable option are there alternatives? The Setup: My situation is as shown above. ...
0
votes
0answers
36 views

cwrsync on Windows 7 and setting PATH variable

The rsync command rsync.exe -av -riz -e "ssh -p 2222 -i d:/vagrants/rails-dev-box/.vagrant/machines/default/virtualbox/private_key" --delete --delete-excluded --exclude ".git" --exclude "cwrsync.*" ...
0
votes
0answers
50 views

Why is there no difference in file transfer speeds using 802.11ac adapter?

My 2012 MacBook Pro is connected to my Netgear R7000 802.11ac router via 2.4 GHz Wi-Fi connection. I can transfer a large file from my Wi-Fi connected to my iMac using rsync at about 90MB/s. Then I ...
1
vote
1answer
158 views

How can I make hourly backups from my Synology NAS to my LaCie NAS?

I have a Synology DiskStation DS215j and a LaCie Network Space 2. The LaCie has firmware >2.2.3, which allows it to function as an rsync server. Of course, normal network shares are also available. ...
0
votes
0answers
16 views

Rsync over intermediate computer with autossh tunnel

I have two laptops with dynamic IP and I am trying to copy directly from one to the other. Lets call them, worklaptop, homelaptop, workserver Worklaptop has a perminant tunnel to workserver by way of ...
0
votes
1answer
80 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
6 views

Rsync doesn't respect --exclude-from; --exclude works

Any idea as to what the problem might be? --exclude works just fine, but when I stick the same line in a file and use --exclude-from=that_file, the exclude pattern no longer registers. (==the files do ...
0
votes
1answer
46 views

Use shell provided by non-root user

What is a good way for a non-root user to use an executable that is not in the system's list of shells as if it were the user's actual shell? I'm trying to do this with two different versions of ...
0
votes
1answer
64 views

cannot rsync via ssh from crontab

I'm having issues transferring files with rsync via ssh. If I just run rsync -avz devel@10.10.10.83:/home/devel/ $/home/user/rsync/servidor it works as expected since the public key is stored in ...
1
vote
3answers
3k views

Rsync as another user (www-data)

I usually use a graphical SSH client to sync a local and remote directory. And I have to set the ownership of all the files from root to www-data. Can I do the same with Rsync, only that I do it as ...
0
votes
1answer
16 views

Delete old backups alike Apple Time Machine does

Time Machine saves hourly backups for the past 24 hours, daily backups for the past month, and weekly backups for everything older than a month until the volume runs out of space. At that point, Time ...
1
vote
1answer
18 views

rsync ignoring partition directory

I use rsync to clone my internal hdd to an external disk. My system is Arch Linux. I have two partitions: / /data I am using the following rsync command: rsync -avzxt --progress --delete ...
0
votes
2answers
2k views

Get rsync to skip files with same size

I'm using the following command to copy a large number of big video files to external drives. rsync -Ph --inplace /Volumes/Production/Prefix* Prefix We had a power failure and the copying was ...
6
votes
5answers
9k views

rsync using regex to include only some files

I am trying to run rsync to copy some files recursively down a path based on their file name pattern, case insensitive. This is what I have done to run rsync: $ rsync -avvz --include ='*/' ...
0
votes
0answers
30 views

Rsync file has vanished error on OS X

I'm trying to rsync between two shared drives. For the most part this works fine, however any file with international characters reports the following error: file has vanished: ...
1
vote
1answer
37 views

restoring files after doing rsync with compression

I understand that you can rsync with arg -z and -a for compress and archive. Can someone tell me with these options, does it affect the files being backed up in any way if ever they need to be ...
0
votes
2answers
677 views

Using rsync to recursively copy a directory while excluding a sub-directory but including a file in a sub-directory of the excluded sub-directory

I have a file tree that looks as such: in ├── file1 ├── dir1 └── dir2 ├── dir3 │   ├──── file2 │ └──── junk1 ├── junk2 └── junk3 I want to create a sibling of in which looks ...
1
vote
1answer
30 views

How to rsync the / folder properly?

I have a btrfs snapshot of / and I want to rsync it with my current / folder. As form of "rollback" if you want. My question is what folder should I avoid for instance I should use -x option to ...
0
votes
1answer
162 views

“No space left on device” when writing to NTFS on Ubuntu

I'm on Ubuntu 12.04 and want to backup data to my external hard drive which is NTFS. When running cp -rp or rsync, I get no space left errors like this: `rsync: mkstemp "/media/Expansion ...
0
votes
2answers
289 views

Watch a filesystem and rsync changes in a cross-platform way with minimal dependencies

I'd like to start a long-running Ruby or Python script, and have the script watch a local directory for changes to files and new files. Periodically, the script will trigger a one-way rsync to a ...