Questions tagged [rsync]

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.

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

Links

Alternatives

1395 questions
192
votes
4 answers

What are the differences between the rsync delete options?

I see on the rsync man page that there are a number of delete options, but don't really understand the differences between them. What are the differences between these options? --del an alias for --delete-during --delete …
Skilldrick
  • 2,207
61
votes
1 answer

Which is the rsync command to “smartly” merge two folders?

I have some folders that got duplicated by mistake and I have to merge them together. Let's say folder A contain file X and folder B contains file Y, I would like to get file X copied to folder B. But, of course, I can face more complex cases, where…
26
votes
1 answer

What does Rsync's output tell here about to-chk?

I was using rsync using --progress option , So the file transfer completed and I got following output receiving incremental file list Makefile 9,935 100% 9.47MB/s 0:00:00 (xfr#1, to-chk=0/1) My question is what does to-chk=0/1 means…
Akshay Patil
  • 383
  • 1
  • 5
  • 12
19
votes
2 answers

How can I get rsync to ignore missing files?

I'm executing a command like the following to several different systems: $ rsync -a -v foo@machine.company.com:'/path/to/first/*.log path/to/second.txt' /dest/folder/0007/. Sometimes *.log does not exist, and that's OK, but rsync generates the…
18
votes
1 answer

rsync takes a very long time to send file list

I'm trying to use rsync to backup some files from an internal harddisk to a usb-drive. (I'm working on a wd mybook world NAS) There are two folders that I want to backup. A music folder and a video folder. The music folder(864 files, round about…
15
votes
2 answers

rsync only files and not directories

I wish to sync my portable with my Maemo smartphone for just the files in my working directory (top level folder). What can I do to correct my rsync command to sync files in the source folder but not directories? rsync -va --no-r --no-R --no-d…
xtian
  • 995
15
votes
3 answers

How to rsync a large file, with as little CPU and bandwidth expense as possible?

I have a 500 GB file that I plan on backing up remotely. The file changes often. I'll be rsyncing it from a desktop to a server. Both can run rsync client or server. What is the proper command for this? The ones I've tried sofar has been taking…
13
votes
2 answers

How can I rsync a set of subdirectories?

I have a source directory that looks like the following (with numerous subdirectories inside of the src and bin dirs): top_dir proj1 src/ bin/ scripts/ somefile.txt proj2 src/ bin/ target bin/ file.xml I'd like to rsync just the bin…
12
votes
2 answers

What if files change while rsync is running?

I am using rsync to copy ~10GB of small files. What happens if the files in the source directory are modified while rsync is running?
Liam
  • 3,060
12
votes
1 answer

How do rsync show/hide filter rules differ from include/exclude?

I'm working on some intense rsync scripts, and I really want to understand the options at my disposal. In general the man page is the best place for information, with dense and precise prose. One notable omission is the description of the show and…
dasil003
  • 223
11
votes
1 answer

Rsync to-check grows during backup

I am currently transferring about 40 Gigs of files from an external disk to my hard drive, and the rsync progress output always shows something like ... to-check=1100/24094) ... to-check=1099/24094) But during the transfers, the second number…
slhck
  • 228,104
9
votes
2 answers

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 a full file compare (since that would be too…
blueFast
  • 2,716
9
votes
5 answers

Only show changed files while syncing from ext4 to NTFS

I would like rsync to print modified and deleted files. The verbose option (-v) does print modified files but also the list of subdirectories, maybe because touched directories are considered modified. Since I sync a lot of files from a lot of…
qox
  • 91
9
votes
3 answers

rsync copying directory contents non-recursively

I'm trying to copy the contents of a series of directories non-recursively to another remote system. /dirA/dir1/file /dirA/dir2/file /dirA/dir3/file dir1, dir2, and dir3 contain many directories that I do not want copied. Copy on the remote host…
9
votes
1 answer

Make rsync show progress on checksum comparison, even if no difference is being found

I run this command to check the identicalness of two folders and put all differences into a log file: rsync -av --delete --checksum --dry-run --stats --itemize-changes --out-format='%t %i %f ' SOURCE DESTINATION | tee log.txt If there is no…
Rotareti
  • 504
1
2 3
8 9