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
15
votes
1 answer

rsync: getcwd(): No such file or directory (2)

I want to sync Server1 and Server2's logs to LogServer. For Server1: rsync -avz -e 'ssh -p 2188' user@server1:/usr/local/servers/logs/* /usr/local/logs/ This one works, but for Server2: rsync -avz -e 'ssh -p 2188'…
WoooHaaaa
  • 1,605
  • 4
  • 15
  • 13
15
votes
7 answers

Is there any other reason for "no space left on device"?

I am using Dirvish on a Ubuntu server system for backing up a hd to an external usb 3.0 drive. Until a few days ago, everything worked fine, but now every backup fails with "no space left on device (28)" and "file system full". Unfortunately it is…
dummzeuch
  • 607
  • 1
  • 9
  • 20
15
votes
2 answers

rsync ionice destination

To avoid rsync to starve the system and network we use ionice when starting rsync and set the --bwlimit parameter. For example: ionice -c2 -n7 rsync -aH --bwlimit=30000 /foo root@dest.com:/ This does indeed help to ensure the source server remains…
Jason Smith
  • 251
  • 2
  • 3
15
votes
2 answers

Complex includes/excludes with rsync

I'm trying to work out the rsync filter syntax to perform complex include/excludes, and trying to achieve the following: Include / Exclude /home Include /home/user1/* Include /home/user2/subdir/* I've tried many variations on the filter syntax, and…
brianmathis
  • 211
  • 1
  • 2
  • 5
15
votes
3 answers

Getting rsync to move file from source to destination?

Is rsync is a good choice for my project ? I have to : - copy files from source to destination folder via SSH, - be sure all files are copied, - delete source files after copy. - if I have conflict name, I have to rename files. It looks like I…
user44782
  • 265
  • 1
  • 3
  • 5
15
votes
5 answers

Synchronizing very large folder structures

We have a folder structure on our intranet which contains around 800,000 files divvied up into around 4,000 folders. We need to synchronize this to a small cluster of machines in our DMZs. The depth of the structure is very shallow (it never…
MightyE
  • 251
  • 2
  • 6
14
votes
1 answer

Preserving existing destination symlinks with rsync

I am using rsync(1) to keep a local debian repository updated. Recently, the disk I am using to store it started running low on space, so I decided to use symlinks to allow me to move some of the directories to another similar sized…
unkilbeeg
  • 243
  • 2
  • 9
14
votes
1 answer

Force rsync to copy symlink, even if referent does not exist

I am getting this message with rsync: symlink has no referent: "/a/path" Well, rsync is right: in the source filesystem, the (symbolic) link is pointing to a non-existent location. That is intended. The target of the link only exists in the…
blueFast
  • 4,200
  • 13
  • 37
  • 54
14
votes
6 answers

Unix copy command that has a progress bar, but not as heavy as rsync

I need to copy lots of files. Usually I use rsync because I pass it the -aP options and I can see (a) how many files are left to process and (b) how much of each individual file is copied. However rsync also does lots of things with checksums to…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
14
votes
6 answers

Trying to setup chroot'd rsync

I'm trying to set up a backup server. I want to chroot each user (client) to its home directory, and only allow it to use sftp and rsync. I quickly discovered that I was not the only one trying to do something like this, and I found this guide and…
Mark R.
  • 141
  • 1
  • 1
  • 3
14
votes
1 answer

Why does rsync have to be installed on both sides to work?

This might be a silly question, but I wanted to keep some of my servers clean and prefer not to install any additional software. But I always thought rsync would copy data over SSH and would not need rsync on the remote end? /usr/bin/rsync -a…
ujjain
  • 3,983
  • 16
  • 53
  • 91
14
votes
3 answers

Rsync fails to backup some files, giving error 22

I'm trying to backup my whole server using a simple rsync on a NFS mounted volume on '/nas' Here's my rsync command rsync -sav -S --stats -H --numeric-ids --delete -D --exclude-from="/usr/local/bin/rsync_nas1_exclude" / /nas1/ Getting the…
Disco
  • 1,421
  • 5
  • 20
  • 34
13
votes
1 answer

Does rsync change file content (dealing with hardlinks)?

Imagine I have a file remote/A which syncs to local/A and local/B is a hardlink of local/A. Is there a threat that on a next remote/A change and synchronization rsync will not delete local/A but only replace/add some part to it, thus changing…
user619271
  • 232
  • 1
  • 6
13
votes
9 answers

Windows rsync that supports long file names, or an good alternative?

I currently rsync on a Linux host to copy things from Windows to my Linux box. But I can't copy files with long names. I have tried DeltaCopy, cwrsync, and cygwin. From what I have found there all of these tools refuse to copy files when the…
Zoredache
  • 130,897
  • 41
  • 276
  • 420
13
votes
4 answers

rsync : write failed - No space left on device (28)

I want to rsync a folder from one server to another. But rsync synchronization fails: $ rsync -zr --compress-level=9 --delete /var/www/mywebsite/current/web/js login@192.168.1.4:/srv/data2_http rsync: write failed on "/srv/data2_http/js/8814c77.js":…
Bouffe
  • 283
  • 1
  • 3
  • 10