Questions tagged [rsync]

GENERAL RSYNC SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. rsync can copy files locally, over ssh or rsh remote shell services, or with a remote rsync daemon. Files can be incrementally updated and rsync provides for file-size and last-modified time update checks. rsync runs on POSIX systems including Linux, BSD, Unix, and Windows (via Cygwin).

Rsync is a file copy utility which runs on POSIX systems, including Linux, BSD, Unix, and Windows (via Cygwin).

rsync is capable of copying files locally and remotely, using ssh or rsh services as transport, or to a remote rsync daemon (non-secure way). rsync uses a delta-transfer algorithm for transferring files. Files can be incrementally updated based on source/destination differences in file-size and/or timestamps, or differences in checksums.

rsync is very suitable for low-bandwidth and high-latency networks as it transfers only the changed part of files.

rsync was developed by Andrew Tridgell and currently is maintained by Wayne Davison.

For more details see http://rsync.samba.org/

2462 questions
0
votes
0 answers

rsync rules file causing files not copied

I have two shell scripts for synchronising data with the remore, one called out.sh which is supposed to sync local data to the remote and the other called in.sh which is supposed to sync the local data from the remote. out.sh reads the command rsync…
atapaka
  • 1,172
  • 4
  • 14
  • 30
0
votes
0 answers

rsync specific numbered files from remote machine

Hi I am looking to rsync some files in a remote machine locally. there are several files but only need specific numbered files from a list. for example, lets say I have a list of files: file0001 file0002 file0003 . . . file0101 file0102 but would…
Nihrion
  • 5
  • 4
0
votes
1 answer

Linux find and rsync: how to find and rsync keeping the directories?

How can I find files from a directory and save those files in the subdirectories it was found in? FileDirectory: TestFolder Folder1 FileFromFolder1.txt Folder2 FileFromFolder2.txt Folder3 FileFromFolder3.txt Currently using this…
JayC
  • 2,144
  • 8
  • 42
  • 77
0
votes
1 answer

Adding arguments for batch script in command line

I'm trying to call arguments for running a script with the rsync command. I've tried various forms and this is the most "simple", however I continue to get an error. (bash.sh) #! /bin/bash root_dir = $1 target_dir = $2 rsync -avh -P --stats…
0
votes
1 answer

Why does `rsnapshot` repeatedly request password?

My server configuration file has several backup lines that sync changes from my laptop's home directory. Since reinstalling the server OS (OpenSuse), rsnapshot repeatedly requests the laptop password. Passwordless ssh is configured and apparently…
Tom Russell
  • 1,015
  • 2
  • 10
  • 29
0
votes
1 answer

Ansible can't copy files on remote server, but the command runs correctly if run from command line

I'm trying to move everything under /opt/* to a new location on the remote server. I've tried this using command to run rsync directly, as well as using both the copy and the sychronize ansible module. In all cases I get the same error message…
dsollen
  • 6,046
  • 6
  • 43
  • 84
0
votes
0 answers

Why rsync with jump host and sshpass not working

I'm trying to rsync with 'sshpass' and using jump host to transform a file. The command I am using is - rsync -azv -e 'sshpass -p passwordToTargetHost ssh -oProxyCommand="sshpass -p passwordToJumpHost user@JumpHost" user@TargetHost' :/path/to/target…
0
votes
1 answer

rsync --exclude-from=file cannot make the relative path function correctly- how does the exclude from option

I am trying to build a list of files to be excluded. The absolute path works fine! But when I try to use the relative path. I get the following error: rsync: failed to open exclude file exclude-list: No such file or directory (2)rsync error: error…
bdkdavid
  • 203
  • 3
  • 14
0
votes
1 answer

Rsync include a specific file under a certain structure

Following test structure: src/ one/ one/ file.txt two/ file.txt two/ file.txt I only want to sync the file /one/two/file.txt. I tried this but it does not work.. rsync -r --include='/one/two/file.txt' --exclude='*' src/…
Tobias Gaertner
  • 1,155
  • 12
  • 30
0
votes
0 answers

BASH How to split my terminal during a long command line, and communicate with process?

First, sorry for the title, it's really difficult to resume my problem in a catch phrase. I would like to build some bash script witch make a backup of a targeted directory, this backup will be in a server, using ssh. My strategy is using rsync, to…
0
votes
1 answer

Running Rsync in Docker PHP container

I run PHP-apache as a Docker container and I need to use Rsync inside of a PHP script - in exec() function. I can't make it work with the 'default' Rsync - I mean, the one installed in the OS. I'm getting sh: 1: rsync: not found. Same with pretty…
Sam Zadworny
  • 23
  • 3
  • 12
0
votes
1 answer

Get rsync daemon module uid and gid

I have a few rysnc modules setup in /etc/rsyncd.conf file on a server like this: [build] path = /some/path read only = no uid = test gid = test comment = software Build area [build_test] path = /some/other/path read only…
0
votes
1 answer

how to transfer files that match a pattern with rsync

Good morning, I want to transfer specific files in a directory to a remote machine while keeping the architecture of the subdirectories. Moreover, I only want to transfer files that have a peculiar extension (e.g. ".txt"). I have tried the…
0
votes
1 answer

Best way to "pipe" file contents from a remote server, via a 2nd server, output to browser

I have numerous storage servers, and then more "cache" servers which are used to load balance downloads. At the moment I use RSYNC to copy the most popular files from the storage boxes to the cache boxes, then update the DB with the new server IDs,…
Ryan
  • 176
  • 1
  • 4
0
votes
1 answer

rsync --update to ext disk copies unchanged files

I am using rsync to make a backup of my user account on my Mac: rsync -aXuv --filter='dir-merge /.rsync-filterAll' . /Volumes/externalDisk If I then run it again, several unchanged files are backed up again. Example files include things like the…
1 2 3
99
100