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

3
votes
1answer
182 views

SSH Tunnel with autossh

I can't seem to find a close enough example but here it goes. I'm trying to in the end setup rsync from one server to another through an ssh tunnel. Local (my machine) will run the rsync to pull ...
2
votes
1answer
50 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 ...
2
votes
1answer
307 views

Efficient way to download binary from server

I am using a remote machine to compile a project. When it finishes building, I use scp to copy the archive to a local machine. This worked fine till I was on broadband. Now I am using a 3G ...
2
votes
1answer
2k views

rsync specific directories

Below are the directories of my directory structure. I only want to run rsync on the content under the archive directory of any subdirectory and exclude everything else: ./ ap/ ap/aploader/ ...
2
votes
1answer
99 views

Is monitoring rsync with a pts device possible?

I have a rsync backup script, and I was wondering about methods of monitoring it as it runs. I could have it save a log and use watch and tail, but I had a more elegant solution in mind that might be ...
2
votes
1answer
54 views

Can I set defaults for rsync in non daemon mode?

Can I set defaults for rsync in non daemon mode? I know the daemon mode has this configuration file: /etc/rsyncd.conf But I typically use the non daemon version in this sort of manner: rsync -avzcO ...
1
vote
1answer
27 views

Migrating mounts with identical permissions not working

I have two mounts /mount1 and /mount2. I ran the command: rsync -azrt /mount1/* /mount2/ to clone everything from /mount1 to /mount2. I then altered the /etc/fstab (see below) to remove /mount1 ...
1
vote
1answer
36 views

Comparing original & backup folder, then deleting non-existing files

I'm using Raspbian jessie (ubuntu). I made a .sh that makes a backup .img of everything (excluding mnt, tmp, run, dev, boot, etc.) and let this run once a week with crontab. It checks for modified ...
1
vote
1answer
186 views

rsync with different user

I'm working with two ubuntu instances on AWS (which I use a pem key to access them). I set up rsync for both instances, and it works if I use the default user which is ubuntu@ipaddress. However if I ...
1
vote
1answer
273 views

scp can't upload/download files even though ssh works

I can connect to my server using ssh dziura and it works as it should, but I have problems copying any files to/from the server using rsync/scp/sftp. Scp: $ scp dziura:/home/kossak/file_remote.txt . ...
1
vote
1answer
63 views

Rsync folder time and date

I'm using rsync to copy and noticed that the destination folders have the current time and date. Not the time and date of the source. Did I miss a switch in my command? nohup rsync -avhP ...
1
vote
1answer
65 views

Syncing folders where multiple files are partially changed

I have following directory structure on remote machine ALLLibs/LibA/LibA.1 ALLLibs/LibA/LibA.2 ALLLibs/LibB/LibB.1 ALLLibs/LibB/LibB.4 for info LibA.1 and LibA.2 are version of a directory, ...
1
vote
1answer
267 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 ...
1
vote
0answers
139 views

Running rsync as a daemon for a local transfer

My coworker is trying to talk me into running rsync as a daemon on my EM server. I'm currently using rsync to copy a NFS share on my storage cluster to USB external drives so the data can be reviewed ...
1
vote
0answers
887 views

ssh: “Error reading response length from authentication socket”

I have a Makefile with some ssh and rsync commands. All of them are executed correctly, but give the following error message: Error reading response length from authentication socket. I don't like ...
0
votes
0answers
31 views

rsync and scp hang inside the bash script but run at the command line

I'm trying to execute scp and rsync commands inside of a bash script. The following happens when I run the bash script: scp -o StrictHostKeyChecking=no /tmp/foo 'user@xxx.xx.xx.xxx:/tmp/foo' ...
0
votes
0answers
46 views

mysterious out-of-space message from rsync

I am mystified by the out-of-space message from rsync - I have enough freespace on the destination to hold everything, and I blv enough also on --vg-root as well. This doesn't seem to be the same ...
0
votes
0answers
31 views

rsync doesn't delete files from ~/tmp

I'm trying to sync my home folder, named "kjs", with another folder (my usb drive mounted in /mnt/USB1). I use the following command: rsync -aAXv --delete /home/kjs/ /mnt/USB1/kjs This works mostly ...
0
votes
0answers
41 views

rsync complication on sync

We have 2 Web Server node Primary and secondary, if the primary is down by any reason secondary will act as Prim. Now if we talk about the codes we which is on both the host. we should be ...
0
votes
0answers
31 views

problem during rsync backup to a ntfs network share

I'm running a machine with Linux 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) i686 GNU/Linux, during a rsync backup to a ntfs network share (succesfully mounted with: mount -t ...
0
votes
0answers
18 views

Rsync update only destination files where file size is zero

I am using rsync to download the images from ftp server every night. Some of the images get copied but have zero size on it with the exact same name as on source but empty . how can I tell to run the ...
0
votes
0answers
41 views

rsync fails when ssh can't open /dev/tty

I've got a script that needs to rsync some files to a remote machine. The rsync command looks like this: rsync -avz -e 'ssh -vv -o IdentitiesOnly=yes -i /data/credentials/rsync2.key' \ ...
0
votes
0answers
37 views

rsync in script on mac

I have a Script on my Mac Server to sync with another Mac Server. #!/bin/bash DestVolume="/Path/to/destshare" SrcVolume="/Path/to/srcshare" SSHKey="sshkey" SrcUser="user" SrcHost="remoteserver" ...
0
votes
0answers
35 views

rsync can't update a folder that has no x permissions

I have an rsync job running in one server that keeps folders in sync. The job is running as root in one server and transferred to a backup server as normal user. In the origin server one folder ...
0
votes
0answers
33 views

lftp — continue behavior?

I have a straight forward use case that I thougth lftp could do with the --continue flag - alas it didnt work. Is it doable? - Am I missing some flags, and are there any easier way to do this with ...
0
votes
0answers
30 views

What is the effect of rsync with -E and --chmod?

Reading through a script I came across an rsync command with the following flags: -rtlDE -c --delete-after --chmod=u+rwX,go-rwx /path/to/dir1/ /path/to/dir2/ Background: I am refactoring the ...
0
votes
0answers
45 views

cron not running rsync

I'm trying to setup a rsync task using cron. The point is to sync a work folder on a linux partition and its counterpart on a windows partition on a dual-boot computer. To do that, I'm trying to ...
0
votes
0answers
43 views

Move files according to their name in corresponding folder only if the file does not exist already

I created a script that creates reports using R and Latex and that should move the reports to a designated location only if a report with the same size does not already exist there. The script looks ...
0
votes
0answers
119 views

rsync “no such file or directory” when using wildcard

I am trying to use rsync to copy the contents of a folder to another folder. This is the command I am using for this. rsync -v -r $folder64/Pictures/* $folder65/Pictures/ And here is the error ...
0
votes
0answers
50 views

How to find 100 GB of most recently modified files and send to rsync for local synchronization

I need to select 100gig of most recently changed files from a local directory and do an rsync to a local directory (skipping files that are already rsynced). If I try something like find . -mtime ...
0
votes
0answers
22 views

fetch data from remote server for last 15mins

I am fetching data from a remote server using rsync and the data that I have to fetch is from different subfolders . So , connecting the remote machine via ssh I have to check which data are populated ...
0
votes
0answers
24 views

How to force rsync to recopy files with equal timestamp but not newer ones

I need rsync to recopy all files where timestamp is equal on the receiver, skipping newer ones.
0
votes
0answers
222 views

sshfs connection breaks, and cannot be re-established (“Stopping User Manager for UID 65534”)

A Raspberry Pi device connect to my NAS via sshfs, and saves a large backup on it. After some time, the sshfs connection breaks, resulting in a broken backup. At the raspberry system, the sshfs ...
0
votes
0answers
114 views

rsync, find, and other useful commands for synchronizing a large quantity of data

Here is the structure of the folders I would like to consider: /mnt/network/ is my network drive and /local/ is my local folder. What I want is to synchronize the content of these two folders ...
0
votes
0answers
53 views

rsync failed on SSH even after changing Maxstartup option in sshd_config

I am using following command to copy file from another system. sshpass -p 'XXXXX' rsync --partial -avvvv --inplace --rsh=ssh -e 'ssh -vvvv -p 62002 -o StrictHostKeyChecking=no -l username' ...
0
votes
0answers
33 views

Exclude pattern not working for rsync

The following command is working correctly for copying only files matching Mem* rsync -uvma '--include=*/' '--include=**/Mem*' '--exclude=*' ../srcdir/ /targdir I would like to also exclude a ...
0
votes
0answers
206 views

Backup debian folder to qnap nas with rsync repeatly every day

Sorry for this dummy question, but I really stuck here. I have debian web server, which have a backup with usb hdd. I would like to get that backup and send it to my NAS. My NAS is QNAP model TS-231, ...
0
votes
0answers
29 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. ...
0
votes
0answers
49 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 ...
0
votes
0answers
200 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 ...
0
votes
0answers
44 views

rsync question about a directory

I went ahead and used rsync to back up a root directory called /files my exact commands werersync -avzh /files willc66@server.com:/backup, inside my /files directory I had 2 sub directories home and ...
0
votes
0answers
127 views

rsync unexpected EOF in read_timeout

I'm trying to rsync directories from server A to server B, but i get the following error: permission denied unexpected EOF in read_timeout Command is: rsync -avzn ${LOCAL_DIR} ...
0
votes
0answers
149 views

Rsync Issue (AWS EC2)

I have spent quite a bit of time trying to Rsync from a remote to a local machine but been having issues with finding the synced files apparently. The command I entered is: sync -avzhe ...
0
votes
0answers
479 views

rsync does not return on error

I am running a backup script from a udev rule. The script mounts and copies data to a newly connected USB drive, with help of rsync. # Mounting stuff MOUNTPOINT=/media/backup export ...
0
votes
0answers
99 views

rsync --delete doesn't delete all files

This is the script I have so far rsync -avz -e ssh --delete /tftp/ username@192.168.1.51:/tftp/ I want it to completely copy every directory/file in /tftp/ and overwrite everything in the ...
0
votes
0answers
268 views

Script to compare directories and move files (like rsync)

I use rsync to sync data between two servers. If I completely rebuild the directory structure, rsync cannot understand this and will attempt to recopy everything. I am aware that Unison is capable ...
0
votes
0answers
190 views

Use Rsync with HTTP

Is it possible to use rsync with an HTML POST request? If so what would the rsync command look like? For example let's say using HTML5 I have this (bear with me going back to linux stuff): <form ...
0
votes
0answers
414 views

Why I can't pass ip to rsync script?

I am writing script were rsync should be called and ask for password. However I cannot pass IP as argument. I think I am missing something simple. Any ideas? Even trivial script like this just outputs ...
0
votes
0answers
116 views

rsync include-from exlcude-from with including subdir but excluding dirs above

I try to use rsync with --include-from and --exclude-from options. I have a directory structure like: /docs/domain-[a-z]/templates Now I want to sync templates only if something is in there. Further ...
0
votes
0answers
260 views

Rsync seems to back up files that haven't been opened or changed

I have started using rsync to back some data on my mac to an external HD. It works really well, but I have noticed something odd. Every time I run the command, I get a list of files that haven't been ...