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
1answer
30 views

rsync doesn't see/transfer any data

I have a directory on remote VPS (/backuptest) with a archive in it (/backuptest/Friday.tar.gz2). I am trying to use rsync to connect to the VPS and download the archive to my local machine ...
0
votes
1answer
51 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
30 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 ...
0
votes
1answer
46 views

rsync on Windows + non-ASCII file names

Is there a version of rsync that runs on current Windows versions and can handle non-ASCII file names? Every version I checked (including cwRsync and rsync.net client) fail miserably on files with ...
1
vote
1answer
46 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. ...
1
vote
1answer
32 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 ...
0
votes
0answers
9 views

Recover data deleted due to rsync --delete ubuntu [duplicate]

I was trying to copy the data from my office desktop to my laptop which is updated time to time. I have the previous backup with me in my laptop. I was trying to copy on the new and modified data. But ...
0
votes
0answers
32 views

rsync bullies destination ACLs for fun

I have the following ACLs configured on a directory (.ssh) at the destination of my rsync: # file: .ssh # owner: jsmith # group: jsmith user::rwx user:backup:r-x group::--- group:backup:r-x mask::r-x ...
1
vote
1answer
35 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) ...
3
votes
0answers
44 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
41 views

rsync --exclude not excluding

I'm using rsync on Ubuntu 12.04 LTS with the following script to back up all of /, however, whenever I run the script (as root), the directory /backup is included, when it should be excluded: ...
0
votes
0answers
19 views

rsync back-up permissions

I want to backup a NAS tonight i was running a test-run and i got some errors. rsync couldn't open a lot of files because of a permissions error. And when i look to the files it's true only the owner ...
0
votes
1answer
41 views

RSync move files to a different directory if they were deleted on the server

So right now I use rsync to synchronize files with a server. Sometimes the files on the server are deleted (I know about the --delete option and I do not use it) and those files are left in my local ...
0
votes
0answers
39 views

Two hard drives replication: which architecture to pick? [closed]

I've two 3 TB hard drives and I would like to setup a replication between them. They are in external cases and linked to a (home) server (through USB). My question is how to setup a replication ...
1
vote
3answers
100 views

rsync - does it create a temp file during transfer?

As far as I can see rsync doesn't create the file in the target directory until it is complete. This must mean that it creates the file in a temp directory somewhere and copies the file into the ...
0
votes
1answer
20 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 ...
0
votes
2answers
50 views

Rsync print only files that would have been changed

Is there a way to get rsync to print the full filepaths to all files that are different without actually transferring any files? Alternatively, I need a way to diff the files across two trees (over ...
2
votes
1answer
84 views

How to keep rsync over SSH conenction permanent - no broken pipe

I try to run a rsync on a shared server that I have no control over the ssh-config file to prevent the broken pipe error because the connection drop. Here's a snippet of the code I use to backup ...
0
votes
2answers
89 views

Does rsync --inplace write to the entire file, or just to the parts that need to be updated? (for btrfs+rsync backups)

I was reading several guides how combine btrfs snapshots with rsync to make an efficient backup solution with history. However it all depends on if rsync --inplace modifies only those portions of ...
0
votes
0answers
24 views

a confusion on rsync

have to make incremental backups with rsync and dropbox. The simple scenario is like this Say I have some directories under my home directory, like Python MATLAB C++ LaTeX ANSYS and ...
0
votes
0answers
33 views

real mirror with rsnc two live servers

I'm trying to rsync between 2+ servers, however, I always want files get deleted if they are no longer on the "slaves" server as well... pretty much, two+ master servers... if there's a new file on ...
0
votes
0answers
13 views

rsync by preserving directory permission

I'm using below command to rsync command: rsync -az --delete -e 'ssh key' /usr/saran/start_* username@remotehostip:/usr/saran Currently, above command is creating directory as saran [ if not ...
0
votes
1answer
38 views

rsync --remove-source-files and symbolic links

My source folder contains only symbolic links to different directories: symlink1 -> /path/to/dir1 symlink2 -> /path/to/dir2 I want rsync to delete synch'd links from the source on success. ...
13
votes
5answers
618 views

Transfering about 300gb in files from one server to another

I have about 200,000 files that I am transferring to a new server today. I haven't done anything on such a large scale before, and wanted to get some advice on how I should go about this. I am ...
1
vote
2answers
66 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
0answers
86 views

Rsync out of memory

I'm using a VPS (running Debian) with 512mb RAM. I'm trying to copy some file locally on the server with rsync, but it fails fast with this message: rsync: writefd_unbuffered failed to write 5 bytes ...
0
votes
1answer
170 views

Permissions Error Time Capsule (can't rsync owned by root:wheel group)

So, I had just flat out erased my Time Capsules 2TB drive and began running a sync script I wrote alongside a Time Machine Backup. They both have been running for over a day without a hitch, but out ...
1
vote
3answers
181 views

How can I resume a large scp file transfer when using port forwarding?

I have a machine a couple of hops away, and I need to set up port forwarding in order to transfer files. Edit: To be clear, the multiple hops are needed in order to access the remote machine. From ...
0
votes
1answer
61 views

How to achive a pull / backup / archive task with rsync?

I know rsync is a powerful tool. Can someone please tell me what settings I need to achive the following task. assumption: the remote server is a linux box with ssh/rsync access The original data ...
2
votes
1answer
109 views

Rsync: after copying as root, change owner to the web user

I seem to come up against this issue occasionally: serverA assets: owned by user: apache (no 'ftp' user present) serverB assets: owned by user: ftp (apache user present, but not used) I connect ...
0
votes
1answer
37 views

rsync delete and multi-machine synchronization

I have the following situation: I have multiple client machines (i.e., client1, client2, client3) and I'd like to keep a certain folder ("/code") synchronized across all machines. Currently, I have an ...
1
vote
1answer
304 views

Can't rsync locally on synology NAS

I'm logged in to my Synology NAS and although I can rsync from my servers to the NAS and vice versa, I can't use rsync where the source and destination are both on the DiskStation. midnight my_user ...
1
vote
1answer
97 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 ...
0
votes
1answer
35 views

How can the 'df' Used be different after an rsync?

I've used rsync to copy an entire hard disk from one to another which was just newly formatted. It's about 640GB of data, but the destination hard drive has 750MB more that shows up under the 'df' ...
0
votes
0answers
28 views

devices after rsync df output not matching for “used” quantity?

I am making a backup from a two software RAID eSATA 2 TB drives formatted as ext4 to a 2 TB LaCIE rugged drive formatted as ext3. After re-formatting the rugged drive I did an rsync to make the copy ...
2
votes
1answer
412 views

How to Setup Rsync without password with SSH on UNIX / Linux?

How can I set up a rsync between two hosts without providing any password?
1
vote
1answer
179 views

SSH SFTP: transfer local directory to remote server

I can't seem to transfer a simple local folder to a remote server via SFTP or SSH. I feel like the issue has to do with absolute paths or home directories, but here's what I've tried: scp -r ...
0
votes
1answer
78 views

Mac FTP client that can synchronize based on checksum like rsync

I have gotten pretty used to the -c option with rsync which will compare the checksum of the files to see if there are changes instead of relying on times. Unfortunately there are a couple projects i ...
2
votes
0answers
92 views

How to copy Time Machine volume to another disk using rsync while preserving ACLs?

Recently I had to change my Mac's filesystem from case-preserving to being fully case-sensitive. I did that by using CCC and copying data to another disk, then returning back to newly formatted main ...
3
votes
1answer
79 views

rsync … blocked for more than 120 seconds

I'm running an rsync between two external USB 2TB drives to make a copy on a CentOS 5.9 server. It appears to have stalled, and it hangs when I cd to the source drive in the copy, while the ...
0
votes
1answer
79 views

Rsync when connected to specific wifi, linux

I want to do actions when connected to a specific network. One of those things is rsync to a client/server on the network. How can i do it? I'm guessing ACPI but i don't know anything for a SPECIFIC ...
0
votes
0answers
39 views

Rsync slowing down with 25k files

I have a cron'ed Rsync instance to back op a directory tree of pictures. The tree is 4 directories deep and contains a total of 30k files, totalling about 100GB. The largest leaf directory contains ...
0
votes
1answer
117 views

rsync: excluding log rotation files .gz.1, .gz.2 etc

I am doing rsync copies between server. I'd like to exclude compressed log rotate files from the process. The files look like *.gz *.gz.1 *.gz.2 *.gz.[0-99] I was unable to come up with ...
0
votes
2answers
107 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 ...
4
votes
1answer
161 views

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. ...
1
vote
2answers
82 views

how to have rsync only work on file and not directory

I would like to mirror only specific files (for example *.jpg), but rsync creates empty directories on the destination host that don't have any *.jpg files in them. My syntax is: rsync -arv ...
1
vote
1answer
29 views

Control rsync user and group on reciever side

I have an rsync command to backup a directory from a remote server to a local NAS on my LAN, mounted on my server. I am using con to invoke the command rsync --rsh='ssh -pxxx' -rultxz ...
1
vote
1answer
121 views

Is it possible to make rsync make a log-file on a remote system?

I'm using rsync to connect and back up to a hard drive on a remote computer that I have ssh access to. rsync is connecting correctly. The code that's working is rsync -av --progress -e "ssh -p ...
0
votes
1answer
176 views

How do I get rsync to email success/failure log on FreeBSD/FreeNAS 8.3?

I've got a successful rsync local backup using: rsync -vart --del /mnt/main/main /mnt/backup --log-file=/var/log/rsync_mainBackup.log Can anyone tell me how the success/failure of the operation can ...
1
vote
1answer
28 views

rsync all directories that start with a specific digit

I have directory loaded with thousands of sub directories: /home/tmp/ 1 12 123 1234 2345 234 3456 345 34 ...

1 2 3 4 5 9