rsync is a tool to efficiently copy directory hierarchies, locally or remotely, with powerful filters to decide what gets copied.

learn more… | top users | synonyms

2
votes
1answer
56 views

rsync selected subdirectories only

I want to rsync a part of my music library from external drive to my audio player. Generally speaking, say, there is a $source and $target directories, and a text file $subdirs with a list of sub-...
2
votes
3answers
280 views

Copy only directories with .mp3 files with rsync

I'm trying to copy only folders with .mp3 files in them to another device. And only the .mp3s in them. The structure looks like this: Band/Year - Album/*.flac Band/Year - Album/*.txt Band/Year - ...
2
votes
3answers
290 views

How to pass argument with char ( in remote path?

I'm trying to move a file with rsync to a remote location, The file has be be named : DRRS_(H264).mp4 but when I try : rsync -azR output.mp4 user@server.com:encoded/somepath/DRRS_(H264).mp4 it ...
1
vote
1answer
37 views

rsync filter based on an intermediate directory name

I want to copy files /SRC/**/OK/**/*OK* to /DEST/**/OK/**/*OK* using rsync. For all the files to copy, there must be a folder named OK in the full path and a OK in the filename. I tried rsync -avP ...
1
vote
3answers
232 views

To Rsync files where permission denied

I want to find those files which I cannot copy to another location such that I could do Rsync. I have an external HDD and my system´s HDD. The external HDD has files which my system is missing. I ...
2
votes
1answer
378 views

rsync over SSH sometimes very slow--other times maxes out bandwidth

I have a bash script set up on computer A (Mac OS X) set to run every five minutes via a cronjob. This script checks for new files on remote computer B (Gentoo Linux) then rsyncs any new files to ...
0
votes
1answer
59 views

rsync creates directories that are excluded

I'm confused about how rsync includes/excludes files and directories. I have an exclude file: /home/pi/rsync-exclude.txt with contents: /proc/* /sys/* /dev/* /boot/* /tmp/* /run/* /mnt/* /media/* ...
6
votes
1answer
130 views

Redo rsync to preserve hard links?

I'm copying a Raspbian partition from one SD Card to a stand alone Raspbian install on a new SD Card. Based on a suggestion elsewhere, I ran: rsync -av --exclude=/mnt / /mnt but now I'm concerned ...
7
votes
1answer
2k views

Understanding the output of --info=progress2 from rsync

If I run rsync with --info=progress2, I get an output like 105.45M 13% 602.83kB/s 0:02:50 (xfr#495, ir-chk=1020/3825) But what do the single numbers mean? I haven't found a matching entry ...
2
votes
1answer
56 views

Best way to archive after rsync

We have an rsync job that copies thousands of tiny little files to a server. After the files are on that server, we use retrospect to back them up to tape. Retrospect is starting to choke due to the ...
1
vote
5answers
4k views

Save a list of files over SFTP to a text file

I have provided my own answer below. We have a number of bash scripts that work fine using SFTP, what I would like to do is to simply re-direct an ls or dir of a folder to a file on our SFTP Server.. ...
0
votes
2answers
86 views

Is there a way to rate-limit an rsync user?

I have a user with a Shell account(with jailkit) that insists on rsyncing 500gb of data on a daily basis. Is there a way to limit that rsync to say just 2mbits per sec? If I have to do it by IP, how ...
4
votes
1answer
200 views

Should the key for an automatically running cron job that runs over ssh not have a passphrase?

I'm reading an article in Master Linux Now 2013 called OpenSSH: Easy Logins and it uses ssh-agent to allow you to enter a passphrase for your key once, and then you're able to connect to a remote ...
1
vote
1answer
46 views

How to avoid recursive directory traversal for syncing two directories? [closed]

I see a lot of useless recursive directory traversal in: rsync unison owncloud All above application (and many more) do recursive directory traversal over and over again. Since the application ...
0
votes
1answer
69 views

Want to use find with rsync in script

I'm trying to make a script that will run in cron, that will search a path for specific file name. In the path there might be more folders with that same file name. If found and they are newer than 2 ...
0
votes
1answer
341 views

Use rsync to transfer files from Windows to Ubuntu

I'm having trouble transferring files via ssh from a Windows box to an Ubuntu box using rsync and cygwin on Windows. The file transfer starts, but the newly created directories and files on the ...
-1
votes
1answer
23 views

Copy Month wise folders

Main_Dir | --------------------------------------------------------------------- Subdir1 Subdir2 Subdir3 ...
1
vote
2answers
49 views

Using rsync to synchronize directories

I have a script that I am using to backup a directory on a CentOS 6 machine. It's very basic but it is executing rsync -a remote:~/original ./backup This works fine: it is copying the contents of ...
2
votes
1answer
129 views

How can I give a user the CAP_MKNOD capabillity?

Following on from this question: rsync's relationship with special files In order to back up device files, rsync at the destination needs to be able to call mknod. The usual approach would be to ...
2
votes
0answers
80 views

Ecryptfs problem with rsync

I use rsync to sync my files between my home laptop and my office desktop, with the -Cauvb --delete options. Recently, on my laptop, I encrypted my home directory with ecryptfs, which lives on an ...
0
votes
0answers
30 views

After rsync no files exist

From my Ubuntu server I used rsync to copy all my data to my USB drive (FAT). After copying the data (it needed quite a while to copy so I guess the copying did happen) I deleted it from the server. ...
1
vote
3answers
73 views

Moving a backup directory with hard links

I have a script to create backup that uses rsync. Now I'd like to organize the folder moving the older backups to a empty folder above. And I'd like to keep all hard-links and use that as reference to ...
4
votes
1answer
495 views

rsync's relationship with special files

I'm trying to transfer some existing backups from one system to another. The older backup system seems to have managed to back up special files like /dev/hda, /dev/tty0, and /dev/null which look like ...
1
vote
0answers
70 views

keep same inodes metadata with rsync or ignore metadata with du

I'm trying to synchronize two folders from a remote computer. I want to use rsync to send the folder, and du to check if the space used is identical on the remote computer. The problem is even with a ...
1
vote
2answers
109 views

How to get rsync to complain if user not found

I'm moving files over from my old server to my new server. By the time I'm doing it for real (as opposed to just testing) I'll have all the "user" users (the non-system users, i.e. >= 1000) created on ...
3
votes
2answers
741 views

How to skip special / socket files during rsync transfer?

Using the following command. rsync --archive --delete --partial --progress --recursive --no-links --no-devices --quiet source target Using --no-links and --no-devices already. Getting the error ...
1
vote
2answers
304 views

lsyncd: Is it possible to sync individual files from a list?

I want to sync certain files from one linux system to another using lsyncd. The files are not confined to one directory, neither do I want all files from a directory. Specifically I'm trying to make ...
2
votes
1answer
243 views

rsync -vvv gets stuck in OS X with no clear explanation

All of a sudden (not sure when the problem started) my rsync commands against a given machine get stuck: $ (dd bs=1024 count=1024 </dev/urandom >/tmp/temp_file && rsync -arvvv --...
1
vote
0answers
47 views

How can you recover from disk corruption on a backup drive whilst maintaining all hard links?

So, I have a scenario that is similar to How to copy directories with preserving hardlinks? that I wish to use however I have corruption from the backup hardlink source. My Scenario: 1. I backup my ...
1
vote
1answer
3k views

“no matching cipher found” error in `rsync`

I am trying to copy a directory from one system to another with rsync; but it erred. Can you please advise me on what to check? Command: [M root@aMachine ~]# rsync -e "ssh -c blowfish" -v -a /home/...
1
vote
3answers
68 views

rsync adding extra directory to command

I'm scripting an rsync command, and currently I am trying to do something like... rsync -av -e ssh $DATASTORE/usr/local/somepath $DESTDIR/usr/local/someotherpath/ if I echo $DATASTORE it shows ...
1
vote
1answer
444 views

Rsync dry-run statistics- Different statistics after executing 'cp' and 'rsync' commands

In order to generate some random files, I have created a script which is as follows: #!/bin/bash for dir in `seq 1 10` do mkdir /root/mandar/RsyncSrc/$dir cd /root/mandar/RsyncSrc/$...
0
votes
3answers
627 views

Merge (combine) directories using rsync

I need to create deploy script to combine directories ├── LIB_COMMON │ ├── file1.php │ ├── file2.php │ ├── file3.php │ └── file4.php ├── LIB_CZ │ ├── file2.php │ ├── file3.php │ ├── ...
2
votes
2answers
423 views

tunnel rsync:// protocol over ssh

on my LAN (debian server, windows client) I use rsync:// protocol with this code cwRsync\rsync.exe -avLP --force --append-verify rsync://rsync-usb@server/rsync-usb/* usb/ I have read, that rsync in ...
0
votes
3answers
346 views

rsync partial LVM volume to Remote Directory

Can I rsync a full hdd partition (which is inaccessible) to a remote directory? Inaccessible means it cannot be mounted, it was part of LV volume merged with other HDD which is faulty and removed ...
0
votes
1answer
444 views

Windows to Linux (rsync and ssh) [closed]

I'm trying to backup the folders in Windows Pictures to a remote Linux directory. This is what I have: rsync -av ssh /cygdrive/c/users/Owner/Pictures/ blah@192.168.1.10:/var/files/ImageSync/ I got ...
5
votes
3answers
985 views

Copy from remote server which doesn't have rsync

I need to recursively copy a folder from a Ubuntu remote server where I have ssh access. I don't want to follow symbolic links, nor to copy permissions/owner/group, because my client system (Ubuntu ...
1
vote
1answer
399 views

Lsyncd not working on Mac 10.9

I'm attempting to use lsyncd to automatically move files to my local development server. My host is OSX 10.9. SSH on the server works. I can connect using ssh from the host. I am using an SSH key to ...
2
votes
1answer
440 views

how to make rsync to log deleted files

I'm using rsnapshot (which use rsync) to backup files from my web server to local Linux box (Synology) Files, deleted on the web server are deleted on the Linux box, as expected. The problem, that ...
0
votes
1answer
197 views

rsnapshot backup not working?

I installed rsnapshot and configured it to make backup every hour. But the issue is all backups that are made not working. Let me explain to you, I made 3 backups hourly.0, hourly.1 and hourly.2. ...
2
votes
2answers
932 views

Interrupting rsync with ctrl-c, should I use `--partial` or `--append`?

I would like to interrupt rsync with ctrl-c (let's say after half the file has transferred) and resume without having to resend the data that has already been transferred. The stackexchange/google ...
2
votes
1answer
142 views

How to rsync only a specific list of files to the same location on another server

I have a list of files: /location/file.txt Content of file: /location1/file2.abc /location2/location3/file1.abc /location4/location5/fileX.cde I'd like to copy files to another sever like this: ...
0
votes
1answer
70 views

Why is rsync truncating this path?

I'm trying to synchronize a set of remote files via an rsync daemon, but the resulting path is missing the initial path element. $ rsync -HRavP ftp.ncbi.nih.gov::refseq/H_sapiens/README 2015-05-11/ ...
1
vote
1answer
59 views

What happens if I move the hard drives used by Rsync to another computer, and keep syncing them with it?

I realise the question is confusing, so allow me to elaborate. I apologise for the phrasing, as I wasn't sure how to put it. Here's the scenario: As my backup, currently my Mac launches Rsync every ...
0
votes
0answers
51 views

Working with Rsync and changing archives

I'm working with Acronis archives that I want to transfer offsite using rsync (since backing up via FTP or SMB is too troublesome with Acronis via internet). I`m using Acronis to backup Windows ...
1
vote
1answer
147 views

Copy a rolling “last 2 months” of files

I have a friend who is a photographer and she has a lot of large files as a result. Our current solution is where some files are delivered to my house. I don't have the storage capability to store all ...
1
vote
1answer
120 views

How do I run inetd at startup on OpenBSD?

I am trying to backup my Synology NAS to my old NAS. The old NAS has to be an rsync compatible server (according to Synology), and the original OS didn't support it. Fortunately OpenBSD supports my ...
3
votes
1answer
175 views

Can rsync fix time stamps without redownloading?

I have mirrored 100 GiB of files. On my mirror, some of the timestamps and maybe file permissions are wrong. I would like to use rsync to fix this. The server from which I have downloaded has more ...
7
votes
1answer
1k views

How does rsync resolve conflicts?

What if machine A and machine B shares have a directory previously in sync via rsync, and A changes a file and B changes the same file, and you rsync from A to B? Is it perhaps anything like a merge ...
0
votes
0answers
209 views

Trying to setup a 2 way file sync in Linux

I am trying to setup a 2 way file sync in linux of reasonably small data-set. I would like to replicate data over WAN so distributed filesystems like gluster are not in point of my interest - they are ...