Questions tagged [rsync]

Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon

Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon. It offers a large number of options that control every aspect of its behavior and permit very flexible specification of the set of files to be copied. It is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination. Rsync is widely used for backups and mirroring and as an improved copy command for everyday use.

Rsync website

1595 questions
18
votes
2 answers

In an rsync, how do I exclude all directories that match a pattern?

In an rsync I am trying to exclude sub-directories that match a pattern. But, I cannot get it to work. I have followed several examples found here and on Google. But, I do not get the correct results. Here is the option bit of my command: -avh…
Roger Creasy
  • 861
  • 3
  • 11
  • 18
18
votes
6 answers

rsync - report only uploaded files

I have a problem with rsync: either it shows me all files in the directories I am rsyncing (if using the flag -v) or nothing at all (when not using -v). I would like to have rsync quiet except for the files which actually had to be uploaded to the…
blueFast
  • 4,200
  • 13
  • 37
  • 54
18
votes
2 answers

Which is better for website backup - rsync or git push

I run 2 LAMP web servers at different providers for disaster recovery purposes - a high powered live server, and a low powered backup server. Currently I rsync all the data from the live server to the backup server once every 4 hours. This works ok,…
David Laing
  • 283
  • 1
  • 3
  • 9
18
votes
2 answers

How to set file/folder permissions using Rsync from Windows to Linux

I want to transfer lots of files/folders from Windows to Linux using Rsync. On linux server(destination), I want the file permission set to 644, and folder permission set to 755. If possible, I want the ownership set to root.root for all the…
garconcn
  • 2,388
  • 8
  • 35
  • 46
18
votes
5 answers

Encrypted Remote Backups via Rsync?

I run a small modest CentOS server at my house for misc backups, etc. My friend on the other side of town also runs a small modest server at his house for similar purposes. We have been toying with the idea of using eachothers servers to do…
Jake Wilson
  • 8,814
  • 29
  • 97
  • 125
17
votes
4 answers

How to delete empty source directories when moving folders with rsync?

rsync can be coaxed into moving folders very similarly and superiorly to traditional mv with the following options: rsync -axvvES --remove-source-files source_directory /destination/ However one thing I cannot yet seem to get it to do is to remove…
ylluminate
  • 1,155
  • 2
  • 17
  • 35
17
votes
5 answers

For large files compress first then transfer or rsync -z? which would be fastest?

I have a ton of relativity small data files but they take up about 50 GB and I need them transferred to a different machine. I was trying to think of the most efficient way to do this. Thoughts I had were to gzip the whole thing then rsync it and…
None
17
votes
3 answers

Rsync over ssh with root access on both sides

I have one older ubuntu server, and one newer debian server and I am migrating data from the old one to the new one. I want to use rsync to transfer data across to make final migration easier and quicker than the equivalent tar/scp/untar process. As…
Tim Abell
  • 1,361
  • 3
  • 11
  • 21
16
votes
3 answers

How do I use rsync with an IPv6 address via SSH?

I've been having difficulty with connecting to my IPv6 address via rsync. Because the argument for the destination folder is colon-separated, the IPv6 address disrupts this like so: root@fdff::ffff:ffff:ffff:/path/to/dest How do I use rsync with an…
Colene Lafever
  • 171
  • 1
  • 1
  • 6
16
votes
5 answers

btrfs-enabled backup solution

With btrfs hitting production in Oracle EL 14th this month (together with working fsck and scrubbing from Linux 3.2) I was thinking of redesigning my current backup solution to utilise it. Note that I'm thinking about doing it for small amounts of…
Hubert Kario
  • 6,361
  • 6
  • 36
  • 65
16
votes
1 answer

Why is my rsync so slow compared to pure cp or even scp?

I'm transfering the files from Linux to Windows 7 via a mounted share (the share is mounted from Windows on Linux).. I'm copying lots of data (i.e. nearly a TB) from the old to the new machine within my LAN. I'm unfortunate enough already that I…
mark
  • 1,516
  • 5
  • 21
  • 33
16
votes
5 answers

How does RSYNC do incremental Backups

How does rsync know which files are changed and which are not? Does it log its data anywhere in the file? Because I want to do incremental backups, but first it will transfer all files. So my main question is: if I upload the initial files via FTP…
John
16
votes
3 answers

Which is best for backups rsync vs rdiff vs rsnapshot

I am using rsync for backups from remote FTP to local computer. I read on internet that rsnapshot is better. Just want to know which is used in production environment
John
16
votes
1 answer

How can I prevent rsync replacing symbolic links with new directories in the target directory hierarchy?

I am using rsync(1) to synchronize files between a source area and a target area, where the target directory hierarchy contains symbolic links. When a source directory has the same name and relative path as a symbolic link in the target area, then…
Henry
  • 421
  • 3
  • 7
15
votes
3 answers

rsync - exclude all directories except a few

There appear to be a lot of SF and SO questions out there about this, but none seem to match my requirements. source_dir/ some_dir/ another_dir/ some_file.php some_other_file.txt include_this_dir/ include_that_dir/ yet_another_dir/ So…
Tom Auger
  • 341
  • 2
  • 5
  • 14