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

-1
votes
1answer
1k views

How to copy files from remote machine (ubuntu) to local machine (windows)?

I would like to know about two ways: scp and rsync and how exactly they are used to copy files. I tried doing scp ubuntu@ip-10-124-83-21:/home/* /home/ubuntu/crockonjs-2-hd.mov but it didn't work. ...
0
votes
1answer
125 views

Sync only files after a specific time with rsync

I have a server from which I want to copy files and directories to a local destination. The local destination does not have any of the files or directories on it. Instead of copying all files on the ...
1
vote
2answers
448 views

Delete duplicate files with rsync

Here is the thing , I have a folder on my server with 50 GB size and its' containing over 60000 file. I used rsync to transfer it to a mirror server and almost half of file has been transferred.Now i ...
2
votes
2answers
218 views

Can't copy specific files with rsync over SSH

I am trying to sync all PHP files to another computer over ssh via rsync. However, it never copies any files. I am on Mac OSX Mountain Lion (10.8.4) Here is what I have tried: rsync --rsh=ssh ...
2
votes
1answer
382 views

Running rsync shell command in php

I am trying to do a rsync from amazon cloud to my local machine by using php. I have $copy = 'rsync -acz ubuntu@ec3-51-123-131-111.compute-1.amazonaws.com:/project/file.txt .' shell_exec ($copy) ...
1
vote
1answer
78 views

Failure modes for simultaneous rsyncing between two computers

How does rsync handle the possibility of interference with another rsync on the same machine? I have read all the documentation I can find but do not see any mention of this. I am going to run some ...
0
votes
2answers
1k views

backing up ntfs disk using rsync on ubuntu

For a long time I was using windows. I have a separate drive I use to keep copies of my media files, photos etc. on, which I periodically backup to an external drive. In Windows I used SyncToy to do ...
0
votes
1answer
241 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, ...
1
vote
0answers
36 views

Include exclude patterns rsync relative

I'm trying to sync a large tree on Linux, but include and exclude certain files/directories. My question is regarding rsync's --relative option and how relative paths are handled. Directory structures ...
0
votes
0answers
57 views

Win7 laptop. Raspberry backup & archive

I have a laptop running Win7 and a Raspberry Pi running raspian that is configured as a NAS server. The RasPi has a 2 TB HDD attached. What I'd like to do is let the RasPi serve as a way to backup ...
0
votes
1answer
52 views

Did killing rsync job corrupt my files

While my regular backup script was running (using rsync to move files from NFS to external harddrive) we had network problems and I was forced to kill the rsync job in the middle of moving files. ...
0
votes
1answer
300 views

How can I keep a folder on two computers in sync, without uploading to the cloud?

I want to keep certain folders in sync between various computers. They are a mix of Ubuntu 12.04 and Windows 7 machines. I already know about services such as SpiderOak and Dropbox, but I want to ...
0
votes
0answers
25 views

rsync not excluding a directory

My exclude rule only works with faxdata/* but according to the man page, to exclude a directory, I should only need to use faxdata/ (no asterisk). Why isn't my exclude working in this case? rsync ...
2
votes
1answer
605 views

Why doesn't rsync keep my user and groups even with the -o / -g option?

On the client side: rsync -x -r -t -v -o "nobody" -g "nogroup" --progress --delete -u --partial -s -e ssh /home/john/Calibre\ Library root@192.168.0.21:/media/Book On the server side: ...
0
votes
3answers
1k 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
191 views

rsync not copying hard links

I have two computers (both MacBook Airs) for which I sync one directory tree in both, but not the entire hard drive or any other directories. Let's say on computer A the directory is ...
3
votes
3answers
4k views

rsync command deletion error “IO error encountered — skipping file deletion”

I use rsync command to take backup of files from one of my ubuntu server to another ubuntu machine. Backup server trigger a script that use rysnc command. Here is the command I use rsync -rltvh ...
0
votes
0answers
52 views

Incremental back using rsync

I want to sync incremental changes to a remote server using rsync and --link-dest. To test it locally I have created the following structure to test locally: src d1 f1 d2 f1 # ...
-1
votes
1answer
13 views

what is the purpose of rsync's -a flag

So ive read the manual searched google, but not enough information on what is really the purpose of this rsync's -a flag the manual says to provide archive. is it the same archive as in tar? i just ...
0
votes
1answer
40 views

Logistics of a large data transfer

This is the setup: I have a Ubuntu server that is doing the heavily lifting. Its pulls backups from an NFS and puts them on a Drobo device connected via USB using rsync. The Drobo has two seperate ...
0
votes
0answers
17 views

Default options of Rsync & excluding them

I'm using rsync for last 5 years, but i never bothered of such options. Right now my main backup opts are "-rahhzP -pt -c" but... this messed me :D What we've in "man": -c, --checksum ...
14
votes
4answers
20k views

How to speed up rsync?

I'm running rsync to sync a directory onto my external USB HDD. It's about 150 gigs of data. 50000+ files I would guess. It's running it's first sync at the moment, but its copying files at a rate of ...
0
votes
1answer
72 views

rsync in a bash script appears to work, but the files aren't updated on destination server

I've got a server where I do my web development and testing, and I have a bunch of frontend servers that sit behind a load balancer. I wrote a simple bash script to rsync a directory on my dev server ...
3
votes
2answers
2k views

How to make rsync to use relative path?

I want to sync remote database copy using command rsync --relative user@remote:/backup/databases/*.sql /backup/snapshots/ As it's result command creates file ...
0
votes
1answer
400 views

How to have a complicated two way sync using rsync preserving deletions

I have gone thorough similar questions on stackoverflow but they dont cover the situation that I would like to ask here. I have all my music files on my remote machine. I would like to sync them to ...
4
votes
4answers
908 views

Is there an rsync-like mode for WinSCP (or a similar tool)?

I need to be able to do a periodic sync of content off my Windows 7 x64 laptop to my offsite CentOS 6 webserver. Is there a tool/mode like rysnc for WinSCP or similar? For a variety or reasons, ...
0
votes
0answers
106 views

How can I automatically sync a remote directory with a local one?

I've got a scenario where we need to grab files from a remote server that isn't ours on a regular basis. Once downloaded locally, these files are automatically processed and either moved or deleted - ...
0
votes
1answer
107 views

How to copy file from PC to Mac, while preserving xattrs on the target file?

I've a file M on my Mac (OS X ML 10.8.4) and file P on my PC (Win7). File P was originally a copy of file M but is now slightly updated. File M has some extended attributes. How can I copy file P ...
0
votes
0answers
51 views

rsync fails to copy files from remote machine

#Bypassing the ssh spawn -noecho /usr/bin/ssh -o 'StrictHostKeyChecking=no' "$user\@$ip"; if { $argc == $total_arguments} { set REMOTEDIR "$remote_dir"; spawn -noecho /usr/bin/rsync -r ...
1
vote
2answers
97 views

Why isn't -r working for rsync on Windows?

I am running this from my command prompt: rsync -rltz --executability -C --filter=':- .gitignore' -e "ssh -i /cygdrive/c/Users/dstein/.ssh/id_rsa" myfolder/ root@site.local:/path/to/place I have my ...
12
votes
4answers
3k views

Resume recursive scp transfer (with rsync?)

I was transferring several thousand files each ~1MB via scp and my connection was broken after the first 2k files or so. I wanted to know if there was a way to resume the recursive transfer w/o ...
3
votes
3answers
8k views

rsync Permission denied backing up a remote directory to my local machine

NOTE: I found this similar question: Run rsync with root permission on remote machine. That doesn't answer my question. The answer there doesn't provide enough explanation for me to parse my own ...
3
votes
1answer
659 views

How to tell rsync to skip files on a damaged hard drive block, instead of being stuck trying to read it

I am trying to recover files from a disk that has hardware errors. The disk was repaired by disk utility, but it told me that the disk is damaged, so I need to backup everything before a failure will ...
0
votes
1answer
42 views

rsync: delete folder or directory from rsync daemon module

A server I'm working on has a rsync module "foo". So I can view the available files on it as follows: rsync -rltvz 10.100.100.1::foo receiving incremental file list drwxr-xr-x 20480 2013/05/30 ...
2
votes
1answer
118 views

How does rsync know which files to transfer?

This is just a "I feel curious" question. When syncing locally (that is, from one drive to another on the same host), how does rsync know which files are not worth transmitting? I guess it does not do ...
0
votes
2answers
390 views

Is my CF card broken?

I am trying to install Voyage Linux on a 4GB compact flash card according to these steps. However it always fails at some point. When I format the disk manually (as opposed to using the provided ...
0
votes
0answers
118 views

Symlinks are lost after running rsync to sync two directories

I have two identically named directories with similar subdirectories and I would like to merge the contents of one into the other. I'm trying to use rsync to do this and I'm finding that symlinks ...
11
votes
3answers
7k 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 ...
0
votes
0answers
20 views

How to validate whether all the files are copied from remote machine?

I have used the rsync command to copy files from remote machines. spawn -noecho /usr/bin/ssh -o 'StrictHostKeyChecking=no' "$user\@$ip"; if { $argc == $total_arguments} { set REMOTEDIR "Remote ...
4
votes
1answer
179 views

Is Rsync safe to use on a drive that is in use?

I am setting up a nightly cron job to run rsync (with --delete) to synchronize network shares with their respective backup volumes. Will I run into any trouble if there is a lot of activity on the ...
0
votes
0answers
156 views

How to use Arch Build System (abs) behind proxy?

I recently installed arch linux on my laptop and I want to install dwm on it. The arch linux installation guide recommends the use of abs for compiling dwm. However, abs does not seem to work on my ...
1
vote
0answers
325 views

Automatically transfer completed downloads from seedbox home

I'm pondering a move to ruTorrent/rTorrent and was wondering how people have gone about automating transferring content from their seedbox to a linux based home server. I'd like to: 1 - Download ...
1
vote
2answers
74 views

Circular RSync for Wordpress

I've got 4 servers in a load-balancing setup. And I've got a wordpress app on which I need to upload images. Now there is rsync set up on all the servers on a cron with a 1 minute interval with the ...
0
votes
1answer
752 views

rsync 'No such file or directory' error

Note: this is also posted at stackoverflow by accident Can someone give me a hand as to why my rsync command isn't working? I can't figure out what's wrong #! /bin/bash RSYNC=/usr/bin/rsync ...
0
votes
2answers
52 views

Is rsync overwriting my `./` directory?

I'm new to rsync, but I've noticed that at the top of the "receiving incremental file list" is ./ Is rsync overwriting the destination's ./ directory? The timestamp of ./ in destination matches the ...
1
vote
1answer
227 views

How can I limit the disk I/O priority for a process in Windows XP?

I have a setup where a Windows XP machine gets backed up to a server on the LAN, using rsync. Because of operational requirements, the backup needs to happen while the machine is in use. While this is ...
1
vote
1answer
867 views

rsync hangs with message "name lookup failed for xxx.xxx.xxx.xxx: No address associated with hostname

I'm trying to run an rsync daemon on windows xp. The symptom is that when the client connects, both server and client just sit there. Nothing happens. If I wait, the client will stay connected ...
1
vote
1answer
157 views

Bash script template to copy files to predefined destination folders

I need an interactive bash script template to copy files to predefined destination folders. If possible, when prompted for user input tab completion would be enabled for a predefined source directory. ...
0
votes
1answer
50 views

prevent rsync from asking for password

I run rsync from a script and that's working fine but of course this will only work if the machine has the necessary SSH keys installed. Sometimes the script is run on other machines and the process ...
1
vote
1answer
144 views

How do I safely allow unprivileged users to copy files to my server?

I know that I can use rsync over ssh to send files from one Linux computer to another. However, in this case I need to give access to my system to users with a lower level of trust (people who may ...